Updated querying
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
|
||||
import { eq } from "drizzle-orm"
|
||||
import { IButton } from "interfaces"
|
||||
import db from "src/db/db.js"
|
||||
import { guildApps } from "src/db/schema.js"
|
||||
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, hypixelLevel, skywarsLevel } from "utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
@@ -17,7 +15,7 @@ export default {
|
||||
const embed = message.embeds[0]
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
const guildappdata = await db.query.guildApps.findFirst({
|
||||
where: eq(guildApps.userID, applicantId)
|
||||
where: ({ userID }, { eq }) => eq(userID, applicantId)
|
||||
})
|
||||
const uuid = guildappdata!.uuid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user