diff --git a/match_collector/index.ts b/match_collector/index.ts index 06bb7ea..2e9165b 100644 --- a/match_collector/index.ts +++ b/match_collector/index.ts @@ -17,7 +17,8 @@ async function main() { const alreadySeenGameList = await alreadySeenGames(client, latestPatch); console.log("We already have " + alreadySeenGameList.length + " matches for this patch !") - if(process.env.RIOT_API_KEY != null && process.env.RIOT_API_KEY != undefined && process.env.RIOT_API_KEY != "") { + console.log("Using RIOT_API_KEY: " + api_key) + if(api_key != null && api_key != undefined && api_key != "") { const challengerLeague = await fetchChallengerLeague(); console.log("ChallengerLeague: got " + challengerLeague.entries.length + " entries");