mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
RevisionsService: Asynchronously inject NotesService to resolve circular dependency while testing
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
2ce87f3d64
commit
a028dac448
1 changed files with 2 additions and 2 deletions
|
@ -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<Revision>,
|
||||
@Inject(NotesService) private notesService: NotesService,
|
||||
@Inject(forwardRef(() => NotesService)) private notesService: NotesService,
|
||||
) {}
|
||||
|
||||
async getNoteRevisionMetadatas(
|
||||
|
|
Loading…
Reference in a new issue