core: fix hook events

This commit is contained in:
undefined committed 2022-10-06 21:56:39 +08:00
1 parent a5494b1345
commit f2582344b9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ export class Handler extends HandlerCommon {
}
async function serial(name: string, ...args: any[]) {
const r = await (bus.serial as any)(name, ...args);
const r = await (global.app.serial as any)(name, ...args);
if (r instanceof Error) throw r;
return r;
}