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
@@ -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",
+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;
}