Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
RealFascinated committed Feb 21, 2025
1 parent 6f09003 commit 356057a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions projects/backend/src/service/beatleader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { fetchWithCache } from "../common/cache.util";
import CacheService, { ServiceCache } from "./cache.service";
import MinioService from "./minio.service";
import { PlayerService } from "./player.service";
import { DiscordChannels, logToChannel } from "../bot/bot";
import { createGenericEmbed } from "../common/discord/embed";

export default class BeatLeaderService {
/**
Expand Down Expand Up @@ -130,6 +132,13 @@ export default class BeatLeaderService {
savedReplayId = replayId;
}
} catch (error) {
logToChannel(
DiscordChannels.backendLogs,
createGenericEmbed(
"BeatLeader Replays",
`Failed to save replay for ${score.id}: ${error}`
)
);
console.error(`Failed to save replay for ${score.id}: ${error}`);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const PlayerScoreChart = ({ player }: PlayerScoreChartProps) => {
* @param leaderboardId
*/
const onDataPointClick = (leaderboardId: number) => {
openInNewTab(`${env.NEXT_PUBLIC_WEBSITE_NAME}/leaderboard/${leaderboardId}`);
openInNewTab(`${env.NEXT_PUBLIC_WEBSITE_URL}/leaderboard/${leaderboardId}`);
};

const data = dataPoints?.map(dataPoint => {
Expand Down

0 comments on commit 356057a

Please sign in to comment.