core: rename ConfigService to SettingService

This commit is contained in:
undefined committed 2025-06-08 21:42:03 +08:00
1 parent 82735ea3cb
commit c7117ef3ea
15 files changed
+59 -69

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ import { Context } from '../context';
import { Logger } from '../logger';
import { load } from '../options';
import { MongoService } from '../service/db';
import { ConfigService } from '../settings';
import { SettingService } from '../settings';
import {
addon, builtinModel, locale, model, service,
} from './common';
@@ -30,11 +30,11 @@ export async function apply(ctx: Context) {
const fail = [];
await locale(pending, fail);
await ctx.plugin(MongoService, load() || {});
await ctx.plugin(ConfigService);
await ctx.plugin(SettingService);
const modelSystem = require('../model/system');
await modelSystem.runConfig();
ctx = await new Promise((resolve) => {
ctx.inject(['loader', 'config', 'db'], (c) => {
ctx.inject(['loader', 'setting', 'db'], (c) => {
resolve(c);
});
});