fix: 修复某些情况下编辑流水线,没有立即展示变更效果的bug

This commit is contained in:
xiaojunnuo
2025-11-07 01:15:05 +08:00
parent 0203aa2b6e
commit 65e53092e8
4 changed files with 16 additions and 5 deletions
@@ -91,7 +91,7 @@ export class PipelineController extends CrudController<PipelineService> {
delete bean.validTime
}
await this.service.save(bean);
const {version} = await this.service.save(bean);
//是否增加证书监控
if (bean.addToMonitorEnabled && bean.addToMonitorDomains) {
const sysPublicSettings = await this.sysSettingsService.getPublicSettings();
@@ -103,7 +103,7 @@ export class PipelineController extends CrudController<PipelineService> {
});
}
}
return this.ok(bean.id);
return this.ok({id:bean.id,version:version});
}
@Post('/delete', { summary: Constants.per.authOnly })