From 387e4c3b99757533dac4a3946b7ce6e7efd44a47 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 26 Jul 2020 21:01:30 +0200 Subject: [PATCH] NotesService: Add hardcoded-data warnings. Signed-off-by: David Mehren --- src/notes/notes.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/notes/notes.service.ts b/src/notes/notes.service.ts index c9118810c..aff40a396 100644 --- a/src/notes/notes.service.ts +++ b/src/notes/notes.service.ts @@ -111,6 +111,7 @@ export class NotesService { } deleteNoteByIdOrAlias(noteIdOrAlias: string) { + this.logger.warn('Using hardcoded data!'); return; } @@ -149,6 +150,7 @@ export class NotesService { } getNoteMetadata(noteIdOrAlias: string): NoteMetadataDto { + this.logger.warn('Using hardcoded data!'); return { alias: null, createTime: new Date(), @@ -181,6 +183,7 @@ export class NotesService { noteIdOrAlias: string, newPermissions: NotePermissionsUpdateDto, ): NotePermissionsDto { + this.logger.warn('Using hardcoded data!'); return { owner: { displayName: 'foo', @@ -193,6 +196,7 @@ export class NotesService { } getNoteContent(noteIdOrAlias: string) { + this.logger.warn('Using hardcoded data!'); return '# Markdown'; } }