Procházet zdrojové kódy

tech(alerting): fixes broken refactoring

bergquist před 9 roky
rodič
revize
bac89775e2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pkg/api/alerting.go

+ 1 - 1
pkg/api/alerting.go

@@ -88,7 +88,7 @@ func GetAlerts(c *middleware.Context) Response {
 
 
 // GET /api/alerts/:id
 // GET /api/alerts/:id
 func GetAlert(c *middleware.Context) Response {
 func GetAlert(c *middleware.Context) Response {
-	id := c.ParamsInt64(":id")
+	id := c.ParamsInt64(":alertId")
 	query := models.GetAlertByIdQuery{Id: id}
 	query := models.GetAlertByIdQuery{Id: id}
 
 
 	if err := bus.Dispatch(&query); err != nil {
 	if err := bus.Dispatch(&query); err != nil {