소스 검색

tech(alerting): fixes broken refactoring

bergquist 9 년 전
부모
커밋
bac89775e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {