Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/access_tokens_guard/token_providers/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,16 @@ export class DbAccessTokensProvider<
/**
* Update last time the token is used
*/
dbRow.last_used_at = new Date()
const last_used_at = new Date()
await db
.from(this.table)
.where({ id: dbRow.id, type: dbRow.type })
.update({ last_used_at: dbRow.last_used_at })
.update({ last_used_at: last_used_at })
Comment thread
coderabbitai[bot] marked this conversation as resolved.

/**
* Convert to access token instance
*/
const accessToken = this.dbRowToAccessToken(dbRow)
const accessToken = this.dbRowToAccessToken({ ...dbRow, last_used_at })

/**
* Ensure the token secret matches the token hash
Expand Down