bug fixes

This commit is contained in:
undefined committed 2025-03-25 00:57:56 +08:00
1 parent 68e641f28f
commit 62fb745322
15 files changed
+23 -163

No files matched your search

+2 -3
View File
@@ -9,7 +9,7 @@ import { load } from '../options';
import { MongoService } from '../service/db';
import { ConfigService } from '../settings';
import {
addon, builtinModel, locale, model, service, setting,
addon, builtinModel, locale, model, service,
} from './common';
const argv = cac().parse();
@@ -53,11 +53,10 @@ export async function apply(ctx: Context) {
require('../lib/index');
ctx.plugin(require('../service/monitor'));
ctx.plugin(require('../service/check'));
ctx.plugin(require('../service/check').default);
await service(pending, fail, ctx);
await builtinModel(ctx);
await model(pending, fail, ctx);
await setting(pending, fail, require('../model/setting'));
ctx = await new Promise((resolve) => {
ctx.inject(['worker', 'setting'], (c) => {
resolve(c);