mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 23:58:58 -04:00
refactor(auth-token): rename lastUsed to lastUsedAt
This is part of an effort to name all date attributes consistently. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
64667d81c0
commit
b0e2987987
5 changed files with 16 additions and 16 deletions
|
@ -42,7 +42,7 @@ export class AuthToken {
|
|||
nullable: true,
|
||||
type: 'date',
|
||||
})
|
||||
lastUsed: Date | null;
|
||||
lastUsedAt: Date | null;
|
||||
|
||||
public static create(
|
||||
keyId: string,
|
||||
|
@ -57,7 +57,7 @@ export class AuthToken {
|
|||
newToken.label = label;
|
||||
newToken.accessTokenHash = accessToken;
|
||||
newToken.validUntil = validUntil;
|
||||
newToken.lastUsed = null;
|
||||
newToken.lastUsedAt = null;
|
||||
return newToken;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue