fix: 修复历史记录根据流水线名称查询报错的bug

This commit is contained in:
xiaojunnuo
2024-10-04 00:52:52 +08:00
parent 0584b3672b
commit ce9a9862f1
7 changed files with 32 additions and 28 deletions
@@ -6,6 +6,7 @@ import { CacheManager } from '@midwayjs/cache';
import { BaseSettings, SysPrivateSettings, SysPublicSettings } from './models.js';
import * as _ from 'lodash-es';
import { BaseService } from '../../../basic/index.js';
import { checkComm } from '@certd/pipeline';
/**
* 设置
@@ -39,6 +40,9 @@ export class SysSettingsService extends BaseService<SysSettingsEntity> {
if (!key) {
return null;
}
if (key === 'sys.site') {
checkComm();
}
return await this.repository.findOne({
where: {
key,