This commit is contained in:
xiaojunnuo
2024-11-04 18:09:24 +08:00
parent f4c00ee0b6
commit d471d2416d
2 changed files with 9 additions and 6 deletions
@@ -85,7 +85,10 @@ export class CnameProviderService extends BaseService<CnameProviderEntity> {
if (founds && founds.length > 0) {
return founds[0];
}
return CommonProviders[0] as CnameProviderEntity;
if (CommonProviders.length > 0) {
return CommonProviders[0] as CnameProviderEntity;
}
return null;
}
async list(req: ListReq): Promise<any[]> {