Moved all db logic to db functions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { getVerifies } from "src/drizzle/functions"
|
||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import env from "~/utils/Env.js"
|
||||
@@ -53,7 +54,7 @@ export default async function updateAll(interaction: ChatInputCommandInteraction
|
||||
})
|
||||
const guildMemberIDs = hypixelGuildMembers.map(gmember => gmember.uuid)
|
||||
|
||||
const verifiedUsers = await db.query.verifies.findMany()
|
||||
const verifiedUsers = await getVerifies()
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
Reference in New Issue
Block a user