match_collector: log api_key
All checks were successful
pipeline / build-and-push-images (push) Successful in 12s
pipeline / deploy (push) Successful in 7s

This commit is contained in:
2024-11-24 15:39:14 +01:00
parent e7f2f5e41f
commit f1c532ac71

View File

@@ -17,7 +17,8 @@ async function main() {
const alreadySeenGameList = await alreadySeenGames(client, latestPatch); const alreadySeenGameList = await alreadySeenGames(client, latestPatch);
console.log("We already have " + alreadySeenGameList.length + " matches for this patch !") 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(); const challengerLeague = await fetchChallengerLeague();
console.log("ChallengerLeague: got " + challengerLeague.entries.length + " entries"); console.log("ChallengerLeague: got " + challengerLeague.entries.length + " entries");