diff --git a/api/src/app.module.ts b/api/src/app.module.ts index cab0441..271ffd0 100644 --- a/api/src/app.module.ts +++ b/api/src/app.module.ts @@ -3,6 +3,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config'; import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm'; import { UsersModule } from './users/users.module'; import { ApplicationsModule } from './application/applications.module'; +import { RecruitmentSessionModule } from './recruitment-session/recruitment-session.module'; import { TimeSlotsModule } from './timeslots/timeslots.module'; import { AuthenticationModule } from './authentication/authentication.module'; import { APP_GUARD } from '@nestjs/core'; @@ -30,11 +31,12 @@ import { AuthorizationGuard } from './authorization/authorization.guard'; } as TypeOrmModuleOptions), inject: [ConfigService], }), - UsersModule, ApplicationsModule, - TimeSlotsModule, AuthenticationModule, AuthorizationModule, + RecruitmentSessionModule, + TimeSlotsModule, + UsersModule, ], providers: [ { diff --git a/api/src/recruitment-session/recruitment-session.module.ts b/api/src/recruitment-session/recruitment-session.module.ts new file mode 100644 index 0000000..b53e481 --- /dev/null +++ b/api/src/recruitment-session/recruitment-session.module.ts @@ -0,0 +1,14 @@ +import { Module } from '@nestjs/common'; +import { RecruitmentSessionService } from './recruitment-session.service'; +import { RecruitmentSessionController } from './recruitment-session.controller'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { RecruitmentSession } from './recruitment-session.entity'; +import { UsersModule } from 'src/users/users.module'; + +@Module({ + imports: [TypeOrmModule.forFeature([RecruitmentSession]), UsersModule], + providers: [RecruitmentSessionService], + controllers: [RecruitmentSessionController], + exports: [RecruitmentSessionService], +}) +export class RecruitmentSessionModule {}