Fix nullable property types in Note DTOs

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-05-02 18:33:07 +02:00
parent 64f9a29f02
commit 980da1fa43
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 6 additions and 8 deletions

View file

@ -31,7 +31,7 @@ export class NoteMetadataDto {
@IsString()
@IsOptional()
@ApiPropertyOptional()
alias?: string;
alias: string | null;
/**
* Title of the note
@ -74,7 +74,7 @@ export class NoteMetadataDto {
@ValidateNested()
@ApiPropertyOptional({ type: UserInfoDto })
@IsOptional()
updateUser?: UserInfoDto;
updateUser: UserInfoDto | null;
/**
* Counts how many times the published note has been viewed