From 1035315a4341e42e0ae589b5af8e0d348cd249b9 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 14 May 2023 20:06:39 -0700 Subject: [PATCH] debug collect-income --- commands/collect-income.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/collect-income.js b/commands/collect-income.js index 4b215f4..9e77fb9 100644 --- a/commands/collect-income.js +++ b/commands/collect-income.js @@ -90,7 +90,7 @@ module.exports = { newData.bankAccount.balance += totalIncome; newData.lastIncome = now; - client.dbo.collection("banks").updateOne({"banking.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}`]: newData}}, function(err, res) { + client.dbo.collection("users").updateOne({"user.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}`]: newData}}, function(err, res) { if (err) return client.sendInternalError(interaction, err); }); diff --git a/package.json b/package.json index 10e4f61..63a8b81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.7.7", + "version": "6.7.8", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {