From 72710d155a9ea9ac48dfaf9699723af1811710e4 Mon Sep 17 00:00:00 2001 From: f-w Date: Wed, 4 Dec 2024 15:03:25 -0800 Subject: [PATCH] renamed QueueConsumersModule --- src/app.module.ts | 4 ++-- src/queue/{queue-consumers.module.ts => queue.module.ts} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/queue/{queue-consumers.module.ts => queue.module.ts} (94%) diff --git a/src/app.module.ts b/src/app.module.ts index be90e8e05..1c1490810 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -34,7 +34,7 @@ import { MiddlewareConfigService } from './config/middleware-config.service'; import { ObserversModule } from './observers/observers.module'; import { ShutdownService } from './observers/shutdown.service'; import { SwaggerService } from './observers/swagger.service'; -import { QueueConsumersModule } from './queue/queue-consumers.module'; +import { QueueModule } from './queue/queue.module'; import { RssModule } from './rss/rss.module'; @Module({ @@ -106,7 +106,7 @@ import { RssModule } from './rss/rss.module'; }, }), CommonModule, - QueueConsumersModule.register(), + QueueModule.register(), ], providers: [SwaggerService, AppService], }) diff --git a/src/queue/queue-consumers.module.ts b/src/queue/queue.module.ts similarity index 94% rename from src/queue/queue-consumers.module.ts rename to src/queue/queue.module.ts index e14e77a44..fc4ab85a4 100644 --- a/src/queue/queue-consumers.module.ts +++ b/src/queue/queue.module.ts @@ -9,7 +9,7 @@ import { NotificationQueueConsumer } from './notification-queue-consumer'; import { SmsQueueConsumer } from './sms-queue-consumer'; @Module({}) -export class QueueConsumersModule { +export class QueueModule { static register(): DynamicModule { const providers = []; const imports = []; @@ -28,7 +28,7 @@ export class QueueConsumersModule { providers.push(NotificationEventsListener); } return { - module: QueueConsumersModule, + module: QueueModule, imports, providers, };