NoteDto: Rename attribute metdata to metadata

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-19 14:54:08 +02:00
parent b4b91acddb
commit b17da345c7
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ export class NoteDto {
content: string;
@ValidateNested()
metdata: NoteMetadataDto;
metadata: NoteMetadataDto;
@IsArray()
@ValidateNested({ each: true })

View file

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