This commit is contained in:
parent
d16cf9e4af
commit
a0681d7b1c
@ -50,6 +50,7 @@ app.use(
|
|||||||
const page = await scoresaberService.lookupPlayers(pageNumber);
|
const page = await scoresaberService.lookupPlayers(pageNumber);
|
||||||
if (page === undefined) {
|
if (page === undefined) {
|
||||||
console.log(`Failed to fetch players on page ${pageNumber}, skipping page...`);
|
console.log(`Failed to fetch players on page ${pageNumber}, skipping page...`);
|
||||||
|
await delay(cooldown);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (const player of page.players) {
|
for (const player of page.players) {
|
||||||
@ -57,6 +58,7 @@ app.use(
|
|||||||
await PlayerService.trackScoreSaberPlayer(foundPlayer, player);
|
await PlayerService.trackScoreSaberPlayer(foundPlayer, player);
|
||||||
toRemoveIds.push(foundPlayer.id);
|
toRemoveIds.push(foundPlayer.id);
|
||||||
}
|
}
|
||||||
|
await delay(cooldown);
|
||||||
}
|
}
|
||||||
console.log(`Finished tracking player statistics for ${pages} pages, found ${toRemoveIds.length} players.`);
|
console.log(`Finished tracking player statistics for ${pages} pages, found ${toRemoveIds.length} players.`);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user