Moved from sequlize to drizzleorm

This commit is contained in:
2024-10-02 23:37:09 +02:00
parent 20e6e2e86d
commit 0890712b1b
37 changed files with 1110 additions and 247 deletions

View File

@@ -1,7 +1,9 @@
import { embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"
import { eq } from "drizzle-orm"
import { IModal } from "interfaces"
import staffapp from "schemas/staffAppTag.js"
import db from "src/db/db.js"
import { staffApps } from "src/db/schema.js"
export default {
name: "staffdenyreasonbox",
@@ -43,8 +45,7 @@ export default {
await applicant.send({ embeds: [dmMessage] })
const app = await staffapp.findOne({ where: { userID: applicantId } })
await app?.destroy()
await db.delete(staffApps).where(eq(staffApps.userID, applicantId))
await interaction.editReply({
embeds: [{