This commit is contained in:
undefined committed 2022-07-03 18:35:59 +08:00
1 parent e39f29bfa9
commit ef0582d63c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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",
+1
View File
@@ -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);