mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-08 10:22:47 -04:00
AuthTokenEntity: Make validUntil not nullable
As all tokens are valid for a maximum of 2 years, the validUntil attribute is always populated. This updates the database schema and the DTO to reflect that. Fixes #1256 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6ddaa59e8c
commit
375cb4eae9
4 changed files with 8 additions and 13 deletions
|
@ -14,8 +14,7 @@ export class AuthTokenDto {
|
|||
@IsDate()
|
||||
createdAt: Date;
|
||||
@IsDate()
|
||||
@IsOptional()
|
||||
validUntil: Date | null;
|
||||
validUntil: Date;
|
||||
@IsDate()
|
||||
@IsOptional()
|
||||
lastUsed: Date | null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue