mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1036a1fb70
@ -305,7 +305,7 @@ export class AppSupervisor extends EventEmitter implements AsyncEmitter {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('afterStop', async () => {
|
app.on('__stopped', async () => {
|
||||||
this.setAppStatus(app.name, 'stopped');
|
this.setAppStatus(app.name, 'stopped');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -955,6 +955,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
await this.emitAsync('afterStop', this, options);
|
await this.emitAsync('afterStop', this, options);
|
||||||
|
this.emit('__stopped', this, options);
|
||||||
|
|
||||||
this.stopped = true;
|
this.stopped = true;
|
||||||
log.info(`app has stopped`, { method: 'stop' });
|
log.info(`app has stopped`, { method: 'stop' });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user