feat(alerting): make sure dashboard id exists

This commit is contained in:
bergquist
2016-04-20 09:55:32 +02:00
parent ca3ad7d17c
commit 7860a2a1b8
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) {
}
saveAlertCommand := m.SaveAlertsCommand{
DashboardId: dash.Id,
DashboardId: cmd.Result.Id,
OrgId: c.OrgId,
UserId: c.UserId,
Alerts: cmd.GetAlertModels(),