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 73997d4693
commit 6471ba92ef
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 6 additions and 8 deletions

View file

@ -92,7 +92,7 @@ export class NotePermissionsDto {
@ValidateNested()
@ApiPropertyOptional({ type: UserInfoDto })
@IsOptional()
owner?: UserInfoDto;
owner: UserInfoDto | null;
/**
* List of users the note is shared with