fix(monitor): monitor overview throw err

This commit is contained in:
zhaoxiangchun
2021-01-11 21:26:43 +08:00
parent f6f975709a
commit 23f80dced4
-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