Moved from mongodb to sql and sqlite
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import staffapp from "schemas/staffAppTag"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
@@ -43,7 +43,8 @@ export = {
|
||||
]
|
||||
})
|
||||
|
||||
await staffapp.findOneAndDelete({ userID: applicantId })
|
||||
const app = await staffapp.findOne({ where: { userID: applicantId } })
|
||||
await app?.destroy()
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
Reference in New Issue
Block a user