From d1e8dda148daf47392bf3cf9198f62620d6c6c4f Mon Sep 17 00:00:00 2001 From: Supositware Date: Sat, 10 Sep 2022 10:33:41 +0200 Subject: [PATCH] Fix command --- commands/admin/quotation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/admin/quotation.js b/commands/admin/quotation.js index 673b0e54..422eb6f3 100644 --- a/commands/admin/quotation.js +++ b/commands/admin/quotation.js @@ -8,11 +8,11 @@ export default { .setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages), category: 'admin', async execute(interaction, args, client) { - const quotationstat = await db.quotationstat.findOne({ where: { serverID: interaction.guild.id } }); + const quotationstat = await db.quotationStat.findOne({ where: { serverID: interaction.guild.id } }); if (quotationstat.stat !== 'enable') { const body = { serverID: interaction.guild.id, stat: 'enable' }; - await db.quotationstat.create(body); + await db.quotationStat.create(body); return await interaction.reply({ content: 'Quotation has been enabled.', ephemeral: true }); } @@ -38,7 +38,7 @@ export default { interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'yes') { const body = { serverID: interaction.guild.id, stat: 'disable' }; - await db.quotationstat.update(body, { where: { serverID: interaction.guild.id } }); + await db.quotationStat.update(body, { where: { serverID: interaction.guild.id } }); return interaction.editReply({ content: 'Quotation has been disabled.', ephemeral: true }); } else {