2023-12-14 20:57:25 +03:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
|
|
|
|
import { EnvironmentModule } from 'src/integrations/environment/environment.module';
|
|
|
|
import { EnvironmentService } from 'src/integrations/environment/environment.service';
|
|
|
|
import { LoggerModule } from 'src/integrations/logger/logger.module';
|
|
|
|
import { loggerModuleFactory } from 'src/integrations/logger/logger.module-factory';
|
2023-12-19 15:30:40 +03:00
|
|
|
import { JobsModule } from 'src/integrations/message-queue/jobs.module';
|
2023-12-14 20:57:25 +03:00
|
|
|
import { MessageQueueModule } from 'src/integrations/message-queue/message-queue.module';
|
|
|
|
import { messageQueueModuleFactory } from 'src/integrations/message-queue/message-queue.module-factory';
|
2024-01-11 22:29:20 +03:00
|
|
|
import { IntegrationsModule } from 'src/integrations/integrations.module';
|
2023-12-14 20:57:25 +03:00
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
EnvironmentModule.forRoot({}),
|
|
|
|
LoggerModule.forRootAsync({
|
|
|
|
useFactory: loggerModuleFactory,
|
|
|
|
inject: [EnvironmentService],
|
|
|
|
}),
|
|
|
|
MessageQueueModule.forRoot({
|
|
|
|
useFactory: messageQueueModuleFactory,
|
|
|
|
inject: [EnvironmentService],
|
|
|
|
}),
|
2023-12-19 15:30:40 +03:00
|
|
|
JobsModule,
|
2024-01-11 22:29:20 +03:00
|
|
|
IntegrationsModule,
|
2023-12-14 20:57:25 +03:00
|
|
|
],
|
|
|
|
})
|
|
|
|
export class QueueWorkerModule {}
|