Merge pull request #9851 from zhaoxiangchun/feature/zxc-alerthistory-overview-master

fix(monitor): monitor overview throw err
This commit is contained in:
Zexi Li
2021-01-11 22:25:33 +08:00
committed by GitHub
-2
View File
@@ -354,8 +354,6 @@ func (manager *SAlertRecordManager) getNowAlertingRecord(ctx context.Context, us
}
if err := (&tmp).Equals("alert_id", alert.GetId()).First(recordModel); err == nil {
records = append(records, *(recordModel.(*SAlertRecord)))
} else {
return nil, errors.Wrapf(err, "getRecordByAlertId:%s error", alert.GetId())
}
}
return records, nil