fix: 修复用户最大流水线数量校验的问题

pull/436/head
xiaojunnuo 2025-06-05 16:29:13 +08:00
parent cef30c2af0
commit 919f70a5fd
1 changed files with 12 additions and 11 deletions

View File

@ -233,8 +233,8 @@ export class PipelineService extends BaseService<PipelineEntity> {
throw new NeedSuiteException(`对不起,您最多只能添加${userSuite.domainCount.max}个域名,请购买或升级套餐`);
}
}
}
}else{
//非商业版校验用户最大流水线数量
const userId = bean.userId;
const userIsAdmin = await this.userService.isAdmin(userId);
if (!userIsAdmin) {
@ -247,6 +247,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
}
}
}
}
async foreachPipeline(callback: (pipeline: PipelineEntity) => void) {
const idEntityList = await this.repository.find({