From e9a18b88813e66714f57a65f2222ac7444101851 Mon Sep 17 00:00:00 2001 From: Sergej Hoffmann <97111299+SevenWaysDP@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:09:45 +0200 Subject: [PATCH] BC-8311 - fix circular dependency between modules (#5311) --- apps/server/src/modules/group/group.module.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/src/modules/group/group.module.ts b/apps/server/src/modules/group/group.module.ts index 252132b7ef0..9d0ff151a95 100644 --- a/apps/server/src/modules/group/group.module.ts +++ b/apps/server/src/modules/group/group.module.ts @@ -1,12 +1,12 @@ -import { Module } from '@nestjs/common'; +import { forwardRef, Module } from '@nestjs/common'; import { CqrsModule } from '@nestjs/cqrs'; +import { RoleModule } from '../role'; +import { UserModule } from '../user'; import { GroupRepo } from './repo'; import { GroupService } from './service'; -import { UserModule } from '../user'; -import { RoleModule } from '../role'; @Module({ - imports: [UserModule, RoleModule, CqrsModule], + imports: [forwardRef(() => UserModule), RoleModule, CqrsModule], providers: [GroupRepo, GroupService], exports: [GroupService], })