fetch spamming ss api
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 48s

This commit is contained in:
Lee 2024-10-19 09:58:30 +01:00
parent 1f4be74c54
commit a773488e9b

View File

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