From ba4aa03aa105b9b2d475cfc83a40cf45da88ff10 Mon Sep 17 00:00:00 2001 From: *x1 Date: Tue, 18 Jun 2024 17:43:53 +0200 Subject: [PATCH] Update tdep (micro correction 2) --- commands/teams/tdeposit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/teams/tdeposit.js b/commands/teams/tdeposit.js index bd28bcd..009d8fe 100644 --- a/commands/teams/tdeposit.js +++ b/commands/teams/tdeposit.js @@ -79,7 +79,7 @@ module.exports = { return message.reply({ embeds: [embed], allowedMentions: { repliedUser: false } }); } else { db.run(`UPDATE users SET pocket = pocket - ?, teamDroper = teamDroper + ? WHERE guildId = ? AND userId = ?`, [amout, amout, message.guild.id, message.author.id]); - db.run(`UPDATE teams SET bank = bank + ? WHERE id = ?`, [amout, team.id]); + db.run(`UPDATE teams SET bank = bank + ? WHERE guildId = ? AND id = ?`, [amout, message.guild.id, team.id]); const embed = new EmbedBuilder() .setTitle('Dépôt Effectué')