mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
修复oauth.google setting字段异常问题,将__mock__添加至ignore
This commit is contained in:
1 parent
147637d539
commit
6ba93841ea
17 files changed
+103
-16
No files matched your search
@@ -7,7 +7,7 @@ import { compilerText } from './utils';
|
||||
export = async function compile(
|
||||
lang: string, code: string, target: string, copyIn: any, next?: Function,
|
||||
) {
|
||||
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs') as string);
|
||||
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs'));
|
||||
if (!LANGS[lang]) throw new SystemError(`不支持的语言:${lang}`);
|
||||
const info = LANGS[lang];
|
||||
const f = {};
|
||||
|
||||
@@ -8,6 +8,12 @@ import { ObjectID } from 'bson';
|
||||
import fs from 'fs-extra';
|
||||
import { homedir, tmpdir } from 'os';
|
||||
|
||||
declare module 'hydrooj' {
|
||||
interface SystemKeys {
|
||||
'hydrojudge.langs': string,
|
||||
}
|
||||
}
|
||||
|
||||
async function postInit() {
|
||||
// Only start a single daemon
|
||||
if (!cluster.isFirstWorker) return;
|
||||
|
||||
Reference in new issue
Block a user