修复初始化 SystemConfig 数据

This commit is contained in:
whyour
2025-01-01 21:33:43 +08:00
parent 43d6ac2071
commit cecc5aeb15
3 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ export default class UserService {
}
private async updateAuthDb(payload: SystemInfo): Promise<any> {
let doc = await SystemModel.findOne({ type: payload.type });
let doc = await SystemModel.findOne({ where: { type: payload.type } });
if (doc) {
const updateResult = await SystemModel.update(payload, {
where: { id: doc.id },