Skip to content

Commit

Permalink
feat: Recruitment session module
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoBaroso committed Jan 21, 2024
1 parent 598f2dc commit 0cb9b31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -30,11 +31,12 @@ import { AuthorizationGuard } from './authorization/authorization.guard';
} as TypeOrmModuleOptions),
inject: [ConfigService],
}),
UsersModule,
ApplicationsModule,
TimeSlotsModule,
AuthenticationModule,
AuthorizationModule,
RecruitmentSessionModule,
TimeSlotsModule,
UsersModule,
],
providers: [
{
Expand Down
14 changes: 14 additions & 0 deletions api/src/recruitment-session/recruitment-session.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}

0 comments on commit 0cb9b31

Please sign in to comment.