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

@@ -1,9 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
import { eq } from "drizzle-orm"
import { ICommand } from "interfaces"
import db from "src/db/db.js"
import { verifies } from "src/db/schema.js"
import { getHeadURL, getIGN } from "utils/Hypixel.js"
export default {
@@ -22,7 +20,7 @@ export default {
const user = interaction.user
const verifyData = await db.query.verifies.findFirst({
where: eq(verifies.userID, user.id)
where: ({ userID }, { eq }) => eq(userID, user.id)
})
if (!verifyData) {