Skip to content

Commit 55ad4b6

Browse files
committed
Fix SQL query in unjudged command to reference the correct table for unjudged builds
1 parent d30d65e commit 55ad4b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/unjudged.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
},
1010
run: async (client, interaction, prisma) => {
1111
//get all unjudged builds, that means judges[] cardinality is < 2
12-
const unjudgedBuilds = await prisma.$queryRaw(Prisma.sql`SELECT id, \'https://discord.com/channels/${process.env.GUILD_ID}/${process.env.JUDGE_CHANNEL}/\' || judge_msg AS discord_url FROM \"Builds\" WHERE cardinality(judges) < 2;`);
12+
const unjudgedBuilds = await prisma.$queryRaw(Prisma.sql`SELECT id, \'https://discord.com/channels/${process.env.GUILD_ID}/${process.env.JUDGE_CHANNEL}/\' || judge_msg AS discord_url FROM public.\"Build\" WHERE cardinality(judges) < 2;`);
1313

1414
if (unjudgedBuilds.length === 0) {
1515
return interaction.reply({

0 commit comments

Comments
 (0)