Explorar o código

tech(alerting): fixes broken refactoring

bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
bac89775e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 func GetAlert(c *middleware.Context) Response {
-	id := c.ParamsInt64(":id")
+	id := c.ParamsInt64(":alertId")
 	query := models.GetAlertByIdQuery{Id: id}
 
 	if err := bus.Dispatch(&query); err != nil {