fix: types

This commit is contained in:
TrèsAbhi committed 2024-03-25 18:43:23 -05:00
1 parent 71481f5971
commit cb101da8a8
5 files changed
+24 -53

No files matched your search

+2 -2
View File
@@ -45,7 +45,7 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
const clanImage = clan ? emblemURL(clan.emblem_set_id) : undefined;
const leaderboard = await getArchivedRatingLeaderboard(region, 53);
if (leaderboard.format === BkrlFormat.Minimal) {
if (leaderboard.format === BkrlFormat.Base) {
throw new Error(
'Encountered bkrl minimal format in latest season. Wait till next cron?',
);
@@ -412,7 +412,7 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
fontWeight: 'bold',
}}
>
{Math.round(delta.damageDealt / delta.battles).toLocaleString(
{Math.round(delta.damage / delta.battles).toLocaleString(
interaction.locale,
)}
</span>