Moved from mongodb to sql and sqlite

This commit is contained in:
2024-04-09 21:59:52 +02:00
parent 27b01d0c36
commit ef5c531964
42 changed files with 1645 additions and 198 deletions

View File

@@ -1,6 +1,6 @@
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
import { embedColor } from "config/options"
import staffapp from "schemas/staffAppSchema"
import staffapp from "schemas/staffAppTag"
import { IModal } from "interfaces"
export = {
@@ -42,7 +42,8 @@ export = {
await applicant.send({ embeds: [dmMessage] })
await staffapp.findOneAndDelete({ userID: applicantId })
const app = await staffapp.findOne({ where: { userID: applicantId } })
await app?.destroy()
await interaction.editReply({
embeds: [{