fix(alerting): various alerting fixes

This commit is contained in:
Torkel Ödegaard
2016-11-06 15:40:02 +01:00
parent 05c124bb1e
commit 2d19af601a
10 changed files with 48 additions and 14 deletions

View File

@@ -175,10 +175,10 @@ func GetAlertNotifications(c *middleware.Context) Response {
return ApiError(500, "Failed to get alert notifications", err)
}
var result []dtos.AlertNotification
result := make([]*dtos.AlertNotification, 0)
for _, notification := range query.Result {
result = append(result, dtos.AlertNotification{
result = append(result, &dtos.AlertNotification{
Id: notification.Id,
Name: notification.Name,
Type: notification.Type,