Skip to content

Commit

Permalink
Changed user_role API to /user_roles instead of /user_roles/user/user…
Browse files Browse the repository at this point in the history
…_id (#219)
  • Loading branch information
danieljames-dj authored Jun 18, 2024
1 parent fe80a47 commit 8b31873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/wca_live/wca/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ defmodule WcaLive.Wca.Api do
def get_active_team_roles(wca_user_id, access_token) do
params = %{
"isActive" => true,
"groupType" => "teams_committees"
"groupType" => "teams_committees",
"userId" => wca_user_id
}

build_req()
|> with_user_token(access_token)
|> request(url: "/user_roles/user/#{wca_user_id}", params: params)
|> request(url: "/user_roles", params: params)
end

@doc """
Expand Down

0 comments on commit 8b31873

Please sign in to comment.