chore: 流水线有效期优化

This commit is contained in:
xiaojunnuo
2025-10-24 23:48:32 +08:00
parent fea808ca5f
commit 6531002d61
10 changed files with 58 additions and 27 deletions
@@ -85,6 +85,12 @@ export class PipelineController extends CrudController<PipelineService> {
} else {
bean.userId = this.getUserId();
}
if(!this.isAdmin()){
// 非管理员用户 不允许设置流水线有效期
delete bean.validTime
}
await this.service.save(bean);
//是否增加证书监控
if (bean.addToMonitorEnabled && bean.addToMonitorDomains) {