mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -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
cfaa07806b
commit
72b545fec5
3 changed files with 4 additions and 6 deletions
|
@ -181,8 +181,6 @@ export class AuthService {
|
|||
|
||||
toAuthTokenDto(authToken: AuthToken): AuthTokenDto {
|
||||
const tokenDto: AuthTokenDto = {
|
||||
lastUsed: null,
|
||||
validUntil: null,
|
||||
label: authToken.label,
|
||||
keyId: authToken.keyId,
|
||||
createdAt: authToken.createdAt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue