From d73cc8f9b8d5b5a15b4e822a08f833bd49ad8585 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 8 Dec 2022 17:22:27 +0900 Subject: [PATCH] refactor(server): rename AppModule to RootModule --- packages/backend/src/{AppModule.ts => RootModule.ts} | 2 +- packages/backend/src/boot/worker.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/backend/src/{AppModule.ts => RootModule.ts} (91%) diff --git a/packages/backend/src/AppModule.ts b/packages/backend/src/RootModule.ts similarity index 91% rename from packages/backend/src/AppModule.ts rename to packages/backend/src/RootModule.ts index 76de8ca82a..3fc3927768 100644 --- a/packages/backend/src/AppModule.ts +++ b/packages/backend/src/RootModule.ts @@ -10,4 +10,4 @@ import { QueueProcessorModule } from '@/queue/QueueProcessorModule.js'; QueueProcessorModule, ], }) -export class AppModule {} +export class RootModule {} diff --git a/packages/backend/src/boot/worker.ts b/packages/backend/src/boot/worker.ts index 91f0c76317..1a5f1ee81a 100644 --- a/packages/backend/src/boot/worker.ts +++ b/packages/backend/src/boot/worker.ts @@ -4,13 +4,13 @@ import { envOption } from '@/env.js'; import { ChartManagementService } from '@/core/chart/ChartManagementService.js'; import { ServerService } from '@/server/ServerService.js'; import { QueueProcessorService } from '@/queue/QueueProcessorService.js'; -import { AppModule } from '../AppModule.js'; +import { RootModule } from '../RootModule.js'; /** * Init worker process */ export async function workerMain() { - const app = await NestFactory.createApplicationContext(AppModule); + const app = await NestFactory.createApplicationContext(RootModule); app.enableShutdownHooks(); // start server