From a773488e9bcc0d728db3f7fc2e553ecfe24af330 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 19 Oct 2024 09:58:30 +0100 Subject: [PATCH] fetch spamming ss api --- projects/backend/src/service/score.service.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/backend/src/service/score.service.ts b/projects/backend/src/service/score.service.ts index 3bf8e58..7daa47f 100644 --- a/projects/backend/src/service/score.service.ts +++ b/projects/backend/src/service/score.service.ts @@ -46,10 +46,6 @@ export class ScoreService { const score = getScoreSaberScoreFromToken(scoreToken, leaderboardToken); const leaderboard = getScoreSaberLeaderboardFromToken(leaderboardToken); const playerInfo = score.playerInfo; - const player = await scoresaberService.lookupPlayer(playerInfo.id); - if (!player) { - return; - } // Not ranked if (leaderboard.stars <= 0) { @@ -60,6 +56,11 @@ export class ScoreService { return; } + const player = await scoresaberService.lookupPlayer(playerInfo.id); + if (!player) { + return; + } + await logToChannel( DiscordChannels.numberOneFeed, new EmbedBuilder()