mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
Consistently type properties as optional
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
bc08493f89
commit
e217b30d26
2 changed files with 15 additions and 7 deletions
|
@ -31,7 +31,7 @@ export class NoteMetadataDto {
|
|||
@IsString()
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional()
|
||||
alias: string;
|
||||
alias?: string;
|
||||
|
||||
/**
|
||||
* Title of the note
|
||||
|
@ -72,8 +72,9 @@ export class NoteMetadataDto {
|
|||
* User that last edited the note
|
||||
*/
|
||||
@ValidateNested()
|
||||
@ApiProperty({ type: UserInfoDto })
|
||||
updateUser: UserInfoDto;
|
||||
@ApiPropertyOptional({ type: UserInfoDto })
|
||||
@IsOptional()
|
||||
updateUser?: UserInfoDto;
|
||||
|
||||
/**
|
||||
* Counts how many times the published note has been viewed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue