mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update api/src/app.instance.ts
Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
This commit is contained in:
parent
2d89f3eb2d
commit
8a50bce083
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user