This commit is contained in:
xiaojunnuo
2025-05-28 23:01:55 +08:00
parent a06ef07178
commit 442f9647a2
6 changed files with 63 additions and 3 deletions
@@ -173,6 +173,9 @@ export class SiteInfoService extends BaseService<SiteInfoEntity> {
let errorCount = 0
let errorMessage = ""
for (const item of list) {
if (!item) {
continue;
}
errorCount++
if(item.error){
errorMessage += `${item.ipAddress}${item.error} \n`
@@ -180,7 +180,7 @@ export class SiteIpService extends BaseService<SiteIpEntity> {
}
Promise.all(promiseList).then((res)=>{
const finished = res.filter(item=>{
return item
return item!=null
})
if (finished.length > 0) {
onFinish && onFinish(finished)