mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(monitor): monitor overview throw err
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user