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:
David Mehren 2022-01-16 21:52:15 +01:00
parent 64667d81c0
commit b0e2987987
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
5 changed files with 16 additions and 16 deletions

View file

@ -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;
}
}