fix/bounty view

This commit is contained in:
SowinskiBraeden committed 2023-11-01 14:30:19 -07:00
1 parent 94d66258fd
commit 77a7654f1a
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -143,7 +143,7 @@ module.exports = {
const newBalance = banking.guilds[GuildDB.serverID].balance - (totalBounty * 2);
client.dbo.collection("users").updateOne({"user.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}.balance`]:newBalance}}, (err, res) => {
await client.dbo.collection("users").updateOne({"user.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}.balance`]:newBalance}}, (err, res) => {
if (err) return client.sendInternalError(interaction, err);
});
@@ -161,7 +161,7 @@ module.exports = {
} else if (args[0].name == 'view') {
// TODO: only get players with boutnies.length greater than 0
const activeBounties = await dbo.collection("players").find({
const activeBounties = await client.dbo.collection("players").find({
"bountiesLength": { $gt: 0 }
});