mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: init graphql
This commit is contained in:
1 parent
2097c7257f
commit
c39c406535
16 files changed
+131
-23
No files matched your search
@@ -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 = [
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
Reference in new issue
Block a user