mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
NoteDto: Rename attribute metdata
to metadata
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b4b91acddb
commit
b17da345c7
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ export class NoteDto {
|
||||||
content: string;
|
content: string;
|
||||||
|
|
||||||
@ValidateNested()
|
@ValidateNested()
|
||||||
metdata: NoteMetadataDto;
|
metadata: NoteMetadataDto;
|
||||||
|
|
||||||
@IsArray()
|
@IsArray()
|
||||||
@ValidateNested({ each: true })
|
@ValidateNested({ each: true })
|
||||||
|
|
|
@ -82,7 +82,7 @@ export class NotesService {
|
||||||
this.logger.warn('Using hardcoded data!');
|
this.logger.warn('Using hardcoded data!');
|
||||||
return {
|
return {
|
||||||
content: 'noteContent',
|
content: 'noteContent',
|
||||||
metdata: {
|
metadata: {
|
||||||
alias: null,
|
alias: null,
|
||||||
createTime: new Date(),
|
createTime: new Date(),
|
||||||
description: 'Very descriptive text.',
|
description: 'Very descriptive text.',
|
||||||
|
|
Loading…
Reference in a new issue