From b17da345c719cdf01d5e7a467802de2f0c8bb7eb 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.',