mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: cli: fix addon model not be loaded (#441)
This commit is contained in:
1 parent
95366dc860
commit
add93f5783
2 files changed
+3
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.0.17",
|
"version": "4.0.18",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { ObjectID } from 'mongodb';
|
|||||||
import { Context } from '../context';
|
import { Context } from '../context';
|
||||||
import db from '../service/db';
|
import db from '../service/db';
|
||||||
import {
|
import {
|
||||||
addon, builtinModel, lib, script, service, setting,
|
addon, builtinModel, lib, model, script, service, setting,
|
||||||
} from './common';
|
} from './common';
|
||||||
|
|
||||||
const argv = cac().parse();
|
const argv = cac().parse();
|
||||||
@@ -97,6 +97,7 @@ export async function load(ctx: Context) {
|
|||||||
service(pending, fail, ctx),
|
service(pending, fail, ctx),
|
||||||
]);
|
]);
|
||||||
await builtinModel(ctx);
|
await builtinModel(ctx);
|
||||||
|
await model(pending, fail, ctx);
|
||||||
await setting(pending, fail, require('../model/setting'));
|
await setting(pending, fail, require('../model/setting'));
|
||||||
ctx.plugin(require('../service/server'));
|
ctx.plugin(require('../service/server'));
|
||||||
await addon(pending, fail, ctx);
|
await addon(pending, fail, ctx);
|
||||||
|
|||||||
Reference in new issue
Block a user