mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: cli: wait for script load
This commit is contained in:
1 file changed
+1
@@ -123,5 +123,6 @@ export async function load(ctx: Context) {
|
||||
ctx.loader.reloadPlugin(ctx, path.resolve(scriptDir, h), {}, `hydrooj/script/${h.split('.')[0]}`);
|
||||
}
|
||||
await script(pending, fail, ctx);
|
||||
await ctx.lifecycle.flush();
|
||||
await cli();
|
||||
}
|
||||
Reference in new issue
Block a user