From c6787ef233d56e521bc3444e6acda6d9057debe0 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 19 Sep 2020 14:54:08 +0200 Subject: [PATCH] NoteDto: Rename attribute `metdata` to `metadata` Signed-off-by: David Mehren --- src/notes/note.dto.ts | 2 +- src/notes/notes.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notes/note.dto.ts b/src/notes/note.dto.ts index 40b209644..58917606d 100644 --- a/src/notes/note.dto.ts +++ b/src/notes/note.dto.ts @@ -7,7 +7,7 @@ export class NoteDto { content: string; @ValidateNested() - metdata: NoteMetadataDto; + metadata: NoteMetadataDto; @IsArray() @ValidateNested({ each: true }) diff --git a/src/notes/notes.service.ts b/src/notes/notes.service.ts index aebd48c5e..bc57472d5 100644 --- a/src/notes/notes.service.ts +++ b/src/notes/notes.service.ts @@ -82,7 +82,7 @@ export class NotesService { this.logger.warn('Using hardcoded data!'); return { content: 'noteContent', - metdata: { + metadata: { alias: null, createTime: new Date(), description: 'Very descriptive text.',