|
@@ -261,6 +261,10 @@ func UpdateAlertNotification(c *m.ReqContext, cmd m.UpdateAlertNotificationComma
|
|
|
return Error(500, "Failed to update alert notification", err)
|
|
return Error(500, "Failed to update alert notification", err)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if cmd.Result == nil {
|
|
|
|
|
+ return Error(404, "Alert notification not found", nil)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return JSON(200, dtos.NewAlertNotification(cmd.Result))
|
|
return JSON(200, dtos.NewAlertNotification(cmd.Result))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -272,6 +276,10 @@ func UpdateAlertNotificationByUID(c *m.ReqContext, cmd m.UpdateAlertNotification
|
|
|
return Error(500, "Failed to update alert notification", err)
|
|
return Error(500, "Failed to update alert notification", err)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if cmd.Result == nil {
|
|
|
|
|
+ return Error(404, "Alert notification not found", nil)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return JSON(200, dtos.NewAlertNotification(cmd.Result))
|
|
return JSON(200, dtos.NewAlertNotification(cmd.Result))
|
|
|
}
|
|
}
|
|
|
|
|
|