diff --git a/src/revisions/revisions.service.ts b/src/revisions/revisions.service.ts index 1a64a89ea..8b4742b6f 100644 --- a/src/revisions/revisions.service.ts +++ b/src/revisions/revisions.service.ts @@ -1,4 +1,4 @@ -import { Inject, Injectable, Logger } from '@nestjs/common'; +import { forwardRef, Inject, Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { NotesService } from '../notes/notes.service'; @@ -13,7 +13,7 @@ export class RevisionsService { constructor( @InjectRepository(Revision) private revisionRepository: Repository, - @Inject(NotesService) private notesService: NotesService, + @Inject(forwardRef(() => NotesService)) private notesService: NotesService, ) {} async getNoteRevisionMetadatas(