mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复系统设置数据未初始化
This commit is contained in:
1 parent
372afb92c6
commit
46e71d8213
9 files changed
+30
-34
No files matched your search
@@ -184,7 +184,7 @@ export default class DependenceService {
|
||||
): Promise<Dependence> {
|
||||
const doc: any = await DependenceModel.findOne({ where: { ...query } });
|
||||
if (!doc) {
|
||||
throw new Error(`${JSON.stringify(query)} not found`);
|
||||
throw new Error(`Dependency ${JSON.stringify(query)} not found`);
|
||||
}
|
||||
return doc.get({ plain: true });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user