NotesService: Add hardcoded-data warnings.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-26 21:01:30 +02:00
parent 82f03152a8
commit 387e4c3b99
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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';
}
}