mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
NotesService: Add hardcoded-data warnings.
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
82f03152a8
commit
387e4c3b99
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,7 @@ export class NotesService {
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteNoteByIdOrAlias(noteIdOrAlias: string) {
|
deleteNoteByIdOrAlias(noteIdOrAlias: string) {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,6 +150,7 @@ export class NotesService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNoteMetadata(noteIdOrAlias: string): NoteMetadataDto {
|
getNoteMetadata(noteIdOrAlias: string): NoteMetadataDto {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return {
|
return {
|
||||||
alias: null,
|
alias: null,
|
||||||
createTime: new Date(),
|
createTime: new Date(),
|
||||||
|
@ -181,6 +183,7 @@ export class NotesService {
|
||||||
noteIdOrAlias: string,
|
noteIdOrAlias: string,
|
||||||
newPermissions: NotePermissionsUpdateDto,
|
newPermissions: NotePermissionsUpdateDto,
|
||||||
): NotePermissionsDto {
|
): NotePermissionsDto {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return {
|
return {
|
||||||
owner: {
|
owner: {
|
||||||
displayName: 'foo',
|
displayName: 'foo',
|
||||||
|
@ -193,6 +196,7 @@ export class NotesService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNoteContent(noteIdOrAlias: string) {
|
getNoteContent(noteIdOrAlias: string) {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return '# Markdown';
|
return '# Markdown';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue