feat(alerting): adds alert history page

This commit is contained in:
bergquist
2016-04-28 11:42:03 +02:00
parent 5bc3672296
commit ecfbc2edca
8 changed files with 77 additions and 7 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func SetNewAlertState(cmd *m.UpdateAlertStateCommand) error {
func GetAlertStateLogByAlertId(cmd *m.GetAlertsStateLogCommand) error {
alertLogs := make([]m.AlertStateLog, 0)
if err := x.Where("alert_id = ?", cmd.AlertId).Find(&alertLogs); err != nil {
if err := x.Where("alert_id = ?", cmd.AlertId).Desc("created").Find(&alertLogs); err != nil {
return err
}