mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-16 22:41:59 +00:00
RevisionsService: Add hardcoded-data warnings.
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
7e2abf366c
commit
06b0d19c4b
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable, Logger } from '@nestjs/common';
|
||||||
import { RevisionMetadataDto } from './revision-metadata.dto';
|
import { RevisionMetadataDto } from './revision-metadata.dto';
|
||||||
import { RevisionDto } from './revision.dto';
|
import { RevisionDto } from './revision.dto';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class RevisionsService {
|
export class RevisionsService {
|
||||||
|
private readonly logger = new Logger(RevisionsService.name);
|
||||||
getNoteRevisionMetadatas(noteIdOrAlias: string): RevisionMetadataDto[] {
|
getNoteRevisionMetadatas(noteIdOrAlias: string): RevisionMetadataDto[] {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
id: 'some-uuid',
|
id: 'some-uuid',
|
||||||
|
@ -15,6 +17,7 @@ export class RevisionsService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNoteRevision(noteIdOrAlias: string, revisionId: string): RevisionDto {
|
getNoteRevision(noteIdOrAlias: string, revisionId: string): RevisionDto {
|
||||||
|
this.logger.warn('Using hardcoded data!');
|
||||||
return {
|
return {
|
||||||
id: revisionId,
|
id: revisionId,
|
||||||
content: 'Foobar',
|
content: 'Foobar',
|
||||||
|
|
Loading…
Reference in a new issue