core: use serviceInstance for system model

This commit is contained in:
undefined committed 2025-10-25 23:43:12 +08:00
1 parent 2ad1e1d533
commit f6a9dd3557
30 files changed
+143 -104

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { cloneDeep, omit } from 'lodash';
import type { KoaContext } from '@hydrooj/framework';
import { randomPick, Time } from '@hydrooj/utils';
import { PERM } from '../../model/builtin';
import * as system from '../../model/system';
import system from '../../model/system';
import token from '../../model/token';
export interface UiContextBase {
@@ -1,7 +1,7 @@
import { KoaContext, NotFoundError } from '@hydrooj/framework';
import BlackListModel from '../../model/blacklist';
import DomainModel from '../../model/domain';
import * as system from '../../model/system';
import system from '../../model/system';
export default async (ctx: KoaContext, next) => {
const forceDomain = /^\/d\/([^/]+)\//.exec(ctx.request.path);