Updated querying

This commit is contained in:
2024-10-03 15:21:22 +02:00
parent 4ac6bc9f7b
commit 6c928e749c
16 changed files with 18 additions and 37 deletions

View File

@@ -38,7 +38,7 @@ export default {
const reason = interaction.options.getString("reason") ?? "No reason provided."
const mod = interaction.user!
const waiting = await db.query.waitingLists.findFirst({
where: eq(waitingLists.userID, member.user.id)
where: ({ userID }, { eq }) => eq(userID, member.user.id)
})
if (!waiting) {