mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix hook events
This commit is contained in:
1 parent
a5494b1345
commit
f2582344b9
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user