mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-14 16:51:07 +10:00
fix module dependency
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { forwardRef, Global, Module } from '@nestjs/common';
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { UserService } from './user.service';
|
||||
import { UserController } from './user.controller';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
@ -9,11 +9,7 @@ import { WorkspaceModule } from '../workspace/workspace.module';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([User]),
|
||||
forwardRef(() => AuthModule),
|
||||
WorkspaceModule,
|
||||
],
|
||||
imports: [TypeOrmModule.forFeature([User]), AuthModule, WorkspaceModule],
|
||||
controllers: [UserController],
|
||||
providers: [UserService, UserRepository],
|
||||
exports: [UserService, UserRepository],
|
||||
|
||||
Reference in New Issue
Block a user