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], })