2023-05-26 15:43:14 -05:00
|
|
|
import { BullModule } from '@nestjs/bull'
|
|
|
|
|
import { Module } from '@nestjs/common'
|
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm'
|
2023-06-29 10:32:09 +02:00
|
|
|
|
|
|
|
|
import { LoggerModule } from '../logger/module'
|
|
|
|
|
import { RunnerModule } from '../runner/module'
|
|
|
|
|
import { RESERVATIONS_QUEUE_NAME } from './config'
|
2023-05-26 15:43:14 -05:00
|
|
|
import { ReservationsController } from './controller'
|
2023-06-29 10:32:09 +02:00
|
|
|
import { Reservation } from './entity'
|
2023-05-26 15:43:14 -05:00
|
|
|
import { ReservationsService } from './service'
|
|
|
|
|
import { ReservationsWorker } from './worker'
|
|
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
|
imports: [
|
|
|
|
|
LoggerModule,
|
|
|
|
|
TypeOrmModule.forFeature([Reservation]),
|
|
|
|
|
BullModule.registerQueue({ name: RESERVATIONS_QUEUE_NAME }),
|
|
|
|
|
RunnerModule,
|
|
|
|
|
],
|
|
|
|
|
controllers: [ReservationsController],
|
|
|
|
|
providers: [ReservationsService, ReservationsWorker],
|
|
|
|
|
})
|
|
|
|
|
export class ReservationsModule {}
|