fix: beforeSubAppLoad emit to async
This commit is contained in:
parent
b91937552c
commit
e08a8735b1
@ -10,7 +10,7 @@ export interface registerAppOptions extends Transactionable {
|
|||||||
|
|
||||||
export class ApplicationModel extends Model {
|
export class ApplicationModel extends Model {
|
||||||
static async handleAppStart(mainApp: Application, app: Application, options: registerAppOptions) {
|
static async handleAppStart(mainApp: Application, app: Application, options: registerAppOptions) {
|
||||||
await mainApp.emit('beforeSubAppLoad', {
|
await mainApp.emitAsync('beforeSubAppLoad', {
|
||||||
mainApp,
|
mainApp,
|
||||||
subApp: app,
|
subApp: app,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user