perf: 证书直接查看

This commit is contained in:
xiaojunnuo
2024-10-15 17:12:42 +08:00
parent 64c4933645
commit 5dde5bd3f7
13 changed files with 189 additions and 98 deletions
@@ -60,12 +60,17 @@ export class StorageService extends BaseService<StorageEntity> {
if (pipelineId == null) {
throw new Error('pipelineId 不能为空');
}
return await this.repository.find({
const res = await this.repository.findOne({
where: {
scope: 'pipeline',
namespace: pipelineId + '',
key: 'privateVars',
},
});
if (!res) {
return {};
}
const value = JSON.parse(res.value);
return value.value;
}
}