Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x | import { Module } from '@nestjs/common';
import { PrismaModule } from '@app/modules/prisma/prisma.module';
import { BullModule } from '@nestjs/bullmq';
import { QuickRentService } from '@app/modules/quick-rent/quick-rent.service';
import { QuickRentController } from '@app/modules/quick-rent/quick-rent.controller';
import { QuickRentMatchProcessor } from '@app/modules/quick-rent/workers/match.processor';
import { QuickRentEndBidProcessor } from '@app/modules/quick-rent/workers/end-bid.processor';
import { QuickRentCollectPaymentProcessor } from '@app/modules/quick-rent/workers/collect-payment.processor';
import { QuickRentRemindersProcessor } from '@app/modules/quick-rent/workers/reminders.processor';
import { QuickRentPaymentWindowExpiredProcessor } from '@app/modules/quick-rent/workers/payment-window-expired.processor';
import { QuickRentGateway } from '@app/modules/quick-rent/quick-rent.gateway';
import { NullQueue } from '@app/utils/null-queue';
const IS_TEST = process.env.NODE_ENV === 'test' || process.env.TEST_MODE === '1';
@Module({
imports: [
PrismaModule,
...(IS_TEST
? []
: [
BullModule.registerQueue(
{ name: 'quick-rent:match' },
{ name: 'quick-rent:end-bid-window' },
{ name: 'quick-rent:collect-payment' },
{ name: 'quick-rent:reminders' },
{ name: 'quick-rent:payment-window-expired' },
),
]),
],
controllers: [QuickRentController],
providers: [
QuickRentService,
...(IS_TEST
? [
{ provide: 'BullQueue_quick-rent:match', useClass: NullQueue },
{ provide: 'BullQueue_quick-rent:end-bid-window', useClass: NullQueue },
{ provide: 'BullQueue_quick-rent:collect-payment', useClass: NullQueue },
{ provide: 'BullQueue_quick-rent:reminders', useClass: NullQueue },
{ provide: 'BullQueue_quick-rent:payment-window-expired', useClass: NullQueue },
]
: [
QuickRentMatchProcessor,
QuickRentEndBidProcessor,
QuickRentCollectPaymentProcessor,
QuickRentRemindersProcessor,
QuickRentPaymentWindowExpiredProcessor,
QuickRentGateway,
]),
],
exports: [QuickRentService],
})
export class QuickRentModule {}
|