Update api/src/app.instance.ts

Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
This commit is contained in:
Yassine 2025-05-30 15:29:32 +01:00 committed by GitHub
parent 2d89f3eb2d
commit 8a50bce083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,11 @@ export class AppInstance {
return this.app; return this.app;
} }
/**
* Checks whether the application context is initialized.
* This may return `false` in environments where the app instance is not set,
* such as when running in test env or CLI mode without a full application bootstrap.
*/
static isReady(): boolean { static isReady(): boolean {
return this.app !== null; return this.app !== null;
} }