mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
fix: 创建cname记录移除域名两端的空格
This commit is contained in:
@@ -58,6 +58,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||
if (param.domain.startsWith('*.')) {
|
||||
param.domain = param.domain.substring(2);
|
||||
}
|
||||
param.domain = param.domain.trim()
|
||||
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
|
||||
if (info) {
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user