mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-13 12:13:43 +08:00
v3.7.0
This commit is contained in:
2
dist/modules/app/app.service.js
vendored
2
dist/modules/app/app.service.js
vendored
@@ -300,7 +300,6 @@ let AppService = class AppService {
|
||||
}
|
||||
async updateSystemApp(body) {
|
||||
const { id, name } = body;
|
||||
common_1.Logger.log(`尝试更新应用: ${name} (ID: ${id})`);
|
||||
const existingApp = await this.appEntity.findOne({
|
||||
where: { name, id: (0, typeorm_2.Not)(id) },
|
||||
});
|
||||
@@ -310,7 +309,6 @@ let AppService = class AppService {
|
||||
}
|
||||
const res = await this.appEntity.update({ id }, body);
|
||||
if (res.affected > 0) {
|
||||
common_1.Logger.log(`修改系统应用信息成功: ${name}`);
|
||||
return '修改系统应用信息成功';
|
||||
}
|
||||
common_1.Logger.error(`修改系统应用信息失败:${name}`);
|
||||
|
||||
Reference in New Issue
Block a user