mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
refactor(server): rename AppModule to RootModule
This commit is contained in:
parent
6bb194de54
commit
d73cc8f9b8
@ -10,4 +10,4 @@ import { QueueProcessorModule } from '@/queue/QueueProcessorModule.js';
|
||||
QueueProcessorModule,
|
||||
],
|
||||
})
|
||||
export class AppModule {}
|
||||
export class RootModule {}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user