mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +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",
|
||||
"version": "4.0.17",
|
||||
"version": "4.0.18",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ObjectID } from 'mongodb';
|
||||
import { Context } from '../context';
|
||||
import db from '../service/db';
|
||||
import {
|
||||
addon, builtinModel, lib, script, service, setting,
|
||||
addon, builtinModel, lib, model, script, service, setting,
|
||||
} from './common';
|
||||
|
||||
const argv = cac().parse();
|
||||
@@ -97,6 +97,7 @@ export async function load(ctx: Context) {
|
||||
service(pending, fail, ctx),
|
||||
]);
|
||||
await builtinModel(ctx);
|
||||
await model(pending, fail, ctx);
|
||||
await setting(pending, fail, require('../model/setting'));
|
||||
ctx.plugin(require('../service/server'));
|
||||
await addon(pending, fail, ctx);
|
||||
|
||||
Reference in new issue
Block a user