fix(api): resolve CLI removing settings

This commit is contained in:
yassinedorbozgithub
2025-05-29 19:30:16 +01:00
parent 2594434137
commit 9a7b5a3672
2 changed files with 9 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
import { INestApplication } from '@nestjs/common';
export class AppInstance {
private static app: INestApplication;
private static app: INestApplication | null = null;
static setApp(app: INestApplication) {
this.app = app;
@@ -21,4 +21,8 @@ export class AppInstance {
}
return this.app;
}
static isReady(): boolean {
return this.app !== null;
}
}