fix(monitor): monitor overview throw err

This commit is contained in:
zhaoxiangchun
2021-01-11 21:24:27 +08:00
parent cb1d93ddf9
commit 7988fa1f10
-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