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