refactor: move logSecret into module init

This commit is contained in:
izzy
2025-11-19 15:13:11 +00:00
parent edc1333db1
commit 73ae766d9f
2 changed files with 6 additions and 2 deletions

View File

@@ -12,12 +12,11 @@ async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(MaintenanceModule, { bufferLogs: true });
app.get(AppRepository).setCloseFn(() => app.close());
void configureExpress(app, {
permitSwaggerWrite: false,
ssr: MaintenanceWorkerService,
});
void app.get(MaintenanceWorkerService).logSecret();
}
bootstrap().catch((error) => {