From f04421394f2e861f3fbfbe4df1e28bf6cfe45683 Mon Sep 17 00:00:00 2001 From: TastyPumPum <79149170+TastyPumPum@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:49:24 +0000 Subject: [PATCH] Fixes --- src/mahoji/commands/leaderboard.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/mahoji/commands/leaderboard.ts b/src/mahoji/commands/leaderboard.ts index d25e6ff4a9..a7520bef87 100644 --- a/src/mahoji/commands/leaderboard.ts +++ b/src/mahoji/commands/leaderboard.ts @@ -320,29 +320,6 @@ async function minigamesLb( return lbMsg(`${minigame.name} Leaderboard`); } - if (minigame.name === 'Champions Challenge') { - const championsCompletions = await prisma.$queryRawUnsafe<{ id: string; amount: number }[]>( - `SELECT user_id::text as id, champions_challenge::int as amount - FROM minigames - INNER JOIN users ON users.id = minigames.user_id - WHERE champions_challenge > 1 - ${ironmanOnly ? 'AND "minion.ironman" = true' : ''} - ORDER BY champions_challenge DESC - LIMIT 100;` - ); - return doMenuWrapper({ - interaction, - user, - channelID, - users: championsCompletions.map(c => ({ - id: c.id, - score: c.amount - })), - title: 'Champions Challenge Leaderboard', - ironmanOnly - }); - } - // General Minigame handling with raw SQL const minValue = column === 'champions_challenge' ? 1 : 10;