fix: 修复普通用户无法校验cname配置的bug

This commit is contained in:
xiaojunnuo
2024-10-20 01:55:15 +08:00
parent 12116a89f4
commit 62854978bf
2 changed files with 11 additions and 8 deletions
@@ -45,7 +45,7 @@ export class StorageService extends BaseService<StorageEntity> {
async findPipelineVars(pipelineIds: number[]) {
if (pipelineIds == null || pipelineIds.length === 0) {
throw new Error('pipelineIds 不能为空');
return [];
}
return await this.repository.find({
where: {
@@ -58,7 +58,7 @@ export class StorageService extends BaseService<StorageEntity> {
async getPipelinePrivateVars(pipelineId: number) {
if (pipelineId == null) {
throw new Error('pipelineId 不能为空');
return [];
}
const res = await this.repository.findOne({
where: {