core: init graphql

This commit is contained in:
undefined committed 2021-08-23 02:39:58 +08:00
1 parent 2097c7257f
commit c39c406535
16 files changed
+131 -23

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export const builtinModel = [
export const builtinHandler = [
'home', 'problem', 'record', 'judge', 'user',
'contest', 'training', 'discussion', 'manage', 'import',
'misc', 'homework', 'domain', 'status',
'misc', 'homework', 'domain', 'status', 'api',
];
export const builtinScript = [
+3 -1
View File
@@ -78,5 +78,7 @@ export async function load(call: Entry) {
await modelSystem.set('db.ver', dbVer);
}
await bus.serial('app/started');
return await modelSystem.get('server.worker');
return typeof argv.options.worker === 'number'
? argv.options.worker
: await modelSystem.get('server.worker');
}