From 0cb9b31be8e4035481afeafe21f2e162b9a47db7 Mon Sep 17 00:00:00 2001 From: Alberto Baroso Date: Sun, 21 Jan 2024 18:38:45 +0100 Subject: [PATCH] feat: Recruitment session module --- api/src/app.module.ts | 6 ++++-- .../recruitment-session.module.ts | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 api/src/recruitment-session/recruitment-session.module.ts 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 {}