core: load monitor as plugin

This commit is contained in:
undefined committed 2022-10-04 22:28:40 +08:00
1 parent ad72f156ac
commit 09f3900eec
3 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ export async function apply(ctx: Context) {
await ctx.root.start();
require('../lib/index');
await lib(pending, fail, ctx);
require('../service/monitor');
ctx.plugin(require('../service/monitor'));
await service(pending, fail, ctx);
await builtinModel(ctx);
await model(pending, fail, ctx);