refactor(server): rename AppModule to RootModule

This commit is contained in:
syuilo 2022-12-08 17:22:27 +09:00
parent 6bb194de54
commit d73cc8f9b8
2 changed files with 3 additions and 3 deletions

View file

@ -10,4 +10,4 @@ import { QueueProcessorModule } from '@/queue/QueueProcessorModule.js';
QueueProcessorModule,
],
})
export class AppModule {}
export class RootModule {}

View file

@ -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