From 19e74d34302666d5f2a15a206681ba1cbb34f292 Mon Sep 17 00:00:00 2001 From: Nima Shoghi Date: Sat, 12 Dec 2015 20:38:04 -0500 Subject: [PATCH] Fixed error: Param platformId must be string or an array of strings --- lib/api/currentGame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/currentGame.js b/lib/api/currentGame.js index 32754b5..902b2b9 100644 --- a/lib/api/currentGame.js +++ b/lib/api/currentGame.js @@ -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);