mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -04:00
AuthTokenDto: Make properties consistently optional
validUntil and lastUsed already have a IsOptional decorator, this makes the properties themselves also optional Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
ef8b8d985e
commit
5ee9b2a7e8
3 changed files with 4 additions and 6 deletions
|
@ -15,8 +15,8 @@ export class AuthTokenDto {
|
|||
createdAt: Date;
|
||||
@IsDate()
|
||||
@IsOptional()
|
||||
validUntil: Date;
|
||||
validUntil: Date | null;
|
||||
@IsDate()
|
||||
@IsOptional()
|
||||
lastUsed: Date;
|
||||
lastUsed: Date | null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue