Skip to content

Commit

Permalink
Fixed error: Param platformId must be string or an array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nima Shoghi authored and Nima Shoghi committed Dec 13, 2015
1 parent 50da691 commit 19e74d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/currentGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (region) {
options.region = options.region || region || config.defaultRegion;
options.uri = config.uri.CURRENT_GAME;
options.id = summonerId;
options.platformId = config.platforms[options.region];
options.platformId = config.platforms[options.region].id;
options.endpoint = 'api.pvp.net';

util.exec(options, callback);
Expand Down

0 comments on commit 19e74d3

Please sign in to comment.