From f1c532ac717c731f4e36292a1aa557a5119616c0 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sun, 24 Nov 2024 15:39:14 +0100 Subject: [PATCH] match_collector: log api_key --- match_collector/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");