mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -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
b9b5af8b7f
commit
5bd1259949
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