mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-27 17:14:55 +00:00
refactor: sepeare user and auth modules
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { forwardRef, Module } from '@nestjs/common';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { AuthModule } from '~/auth/auth.module';
|
||||
import { CustomerModule } from '~/customer/customer.module';
|
||||
import { UserModule } from '~/user/user.module';
|
||||
import { JuniorController } from './controllers';
|
||||
import { Junior, JuniorRegistrationToken, Theme } from './entities';
|
||||
import { JuniorRepository, JuniorTokenRepository } from './repositories';
|
||||
@ -10,11 +10,7 @@ import { JuniorService, JuniorTokenService, QrcodeService } from './services';
|
||||
@Module({
|
||||
controllers: [JuniorController],
|
||||
providers: [JuniorService, JuniorRepository, JuniorTokenService, JuniorTokenRepository, QrcodeService],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Junior, Theme, JuniorRegistrationToken]),
|
||||
forwardRef(() => AuthModule),
|
||||
CustomerModule,
|
||||
],
|
||||
imports: [TypeOrmModule.forFeature([Junior, Theme, JuniorRegistrationToken]), UserModule, CustomerModule],
|
||||
exports: [JuniorService, JuniorTokenService],
|
||||
})
|
||||
export class JuniorModule {}
|
||||
|
||||
Reference in New Issue
Block a user