diff --git a/src/alokasi-ruangan/alokasi-ruangan.dto.ts b/src/alokasi-ruangan/alokasi-ruangan.dto.ts index 74bf31f6687d31874f862e59eaff62ad0668c647..8eb18ca1406db3ec86131bf9a11f2d86f9f36bee 100644 --- a/src/alokasi-ruangan/alokasi-ruangan.dto.ts +++ b/src/alokasi-ruangan/alokasi-ruangan.dto.ts @@ -35,8 +35,8 @@ export class GetAllPengajuanSidangItemDto { @ApiProperty() namaMahasiswa: string; - @ApiProperty() - jadwalSidang: string; + @ApiProperty({ nullable: true }) + jadwalSidang: string | null; @ApiProperty({ enum: TipeSidsemEnum }) jenisSidang: TipeSidsemEnum; diff --git a/src/alokasi-ruangan/alokasi-ruangan.module.ts b/src/alokasi-ruangan/alokasi-ruangan.module.ts index b0dfee65ba16b11d510fb13e54e4fc9acf4a94ed..b486a6c8c53b4b3acdcb541106363a3f1ddd399d 100644 --- a/src/alokasi-ruangan/alokasi-ruangan.module.ts +++ b/src/alokasi-ruangan/alokasi-ruangan.module.ts @@ -1,9 +1,23 @@ import { Module } from "@nestjs/common"; +import { TypeOrmModule } from "@nestjs/typeorm"; +import { AuthModule } from "src/auth/auth.module"; +import { DosenBimbingan } from "src/entities/dosenBimbingan.entity"; +import { PendaftaranSidsem } from "src/entities/pendaftaranSidsem"; +import { PengujiSidsem } from "src/entities/pengujiSidsem.entity"; +import { CustomStrategy } from "src/middlewares/custom.strategy"; import { AlokasiRuanganController } from "./alokasi-ruangan.controller"; import { AlokasiRuanganService } from "./alokasi-ruangan.service"; @Module({ + imports: [ + TypeOrmModule.forFeature([ + PendaftaranSidsem, + PengujiSidsem, + DosenBimbingan, + ]), + AuthModule, + ], controllers: [AlokasiRuanganController], - providers: [AlokasiRuanganService], + providers: [AlokasiRuanganService, CustomStrategy], }) export class AlokasiRuanganModule {}