mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.0.7",
|
||||
"version": "4.0.8",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -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