错误修复

This commit is contained in:
masnn committed 2020-05-29 20:00:40 +08:00
1 parent fff2172c38
commit 257d9814a9
15 files changed
+57 -63

No files matched your search

+5 -4
View File
@@ -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',