mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix #382
This commit is contained in:
1 parent
e39f29bfa9
commit
ef0582d63c
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.14.4",
|
"version": "3.14.5",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -286,6 +286,7 @@ async function handle(ctx: KoaContext, HandlerClass, checker) {
|
|||||||
throw new MethodNotAllowedError(method);
|
throw new MethodNotAllowedError(method);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await h.init();
|
||||||
await bail('handler/init', h);
|
await bail('handler/init', h);
|
||||||
await bail(`handler/before-prepare/${HandlerClass.name.replace(/Handler$/, '')}`, h);
|
await bail(`handler/before-prepare/${HandlerClass.name.replace(/Handler$/, '')}`, h);
|
||||||
await bail('handler/before-prepare', h);
|
await bail('handler/before-prepare', h);
|
||||||
|
|||||||
Reference in new issue
Block a user