feat(alerting): adds alert history page

This commit is contained in:
bergquist committed 2016-04-28 11:42:03 +02:00
1 parent 5bc3672296
commit ecfbc2edca
8 files changed
+77 -7

No files matched your search

+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
}