mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
错误修复
This commit is contained in:
1 parent
fff2172c38
commit
257d9814a9
15 files changed
+57
-63
No files matched your search
+5
-4
@@ -238,9 +238,10 @@ async function load() {
|
||||
await server.prepare();
|
||||
await service();
|
||||
const builtinModel = [
|
||||
'document', 'blacklist', 'builtin', 'contest', 'message',
|
||||
'opcount', 'problem', 'record', 'setting', 'solution',
|
||||
'token', 'training', 'user', 'file', 'discussion',
|
||||
'builtin', 'document', 'domain', 'blacklist', 'opcount',
|
||||
'setting', 'token', 'user', 'problem', 'record',
|
||||
'contest', 'message', 'solution', 'training', 'file',
|
||||
'discussion',
|
||||
];
|
||||
for (const i of builtinModel) {
|
||||
const m = require(`./model/${i}`);
|
||||
@@ -250,7 +251,7 @@ async function load() {
|
||||
const dbVer = await system.get('db.ver');
|
||||
if (dbVer !== 1) {
|
||||
const ins = require('./script/install');
|
||||
await ins.run();
|
||||
await ins.run('Root', 'rootroot');
|
||||
}
|
||||
const builtinHandler = [
|
||||
'home', 'problem', 'record', 'judge', 'user',
|
||||
|
||||
Reference in new issue
Block a user