Commit dafcfd70 by Hugo Häggmark Committed by Hugo Häggmark

Fixed bug with getting teams for user

parent 425636ff
...@@ -121,7 +121,7 @@ func GetUserTeams(c *m.ReqContext) Response { ...@@ -121,7 +121,7 @@ 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 { func getUserTeamList(orgID int64, userID int64) Response {
query := m.GetTeamsByUserQuery{OrgId: orgID, UserId: userID} query := m.GetTeamsByUserQuery{OrgId: orgID, UserId: userID}
if err := bus.Dispatch(&query); err != nil { if err := bus.Dispatch(&query); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment