Skip to content

Commit

Permalink
Update riot_api.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
danReynolds committed Mar 30, 2018
1 parent f94e27a commit ef120c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/riot_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_summoner_queues(args)

def get_summoner_id(args)
name = URI.encode(args[:name])
url = replace_url(@api[:summoner][:id], args)
url = replace_url(@api[:summoner][:id], args.merge(name: name))
return unless response = fetch_response(url)
response['id']
end
Expand Down

0 comments on commit ef120c1

Please sign in to comment.