mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
Fix nullable property types in Note DTOs
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
64f9a29f02
commit
980da1fa43
3 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue