NotesService: Implement updateNoteMetadata

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
David Mehren 2020-10-03 15:52:49 +02:00
parent 6541cfda4e
commit 08fd070bcb
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 32 additions and 2 deletions

View file

@ -34,3 +34,13 @@ export class NoteMetadataDto {
@ValidateNested()
permissions: NotePermissionsDto;
}
export class NoteMetadataUpdateDto {
@IsString()
title: string;
@IsString()
description: string;
@IsArray()
@IsString({ each: true })
tags: string[];
}