瀏覽代碼

Fix param

supercharlesliu 7 年之前
父節點
當前提交
215242128b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/api/user.go

+ 1 - 1
pkg/api/user.go

@@ -118,7 +118,7 @@ func GetSignedInUserTeamList(c *m.ReqContext) Response {
 
 // GET /api/users/:id/teams
 func GetUserTeams(c *m.ReqContext) Response {
-	return getUserTeamList(c.OrgId, c.ParamsInt64("id"))
+	return getUserTeamList(c.OrgId, c.ParamsInt64(":id"))
 }
 
 func getUserTeamList(userID int64, orgID int64) Response {