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()