fix banking db calls, add permission check for settings command
This commit is contained in:
8 files changed
+79
-51
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ function addBank(guilds, guildID, userID, client, startingBalance) {
|
||||
}
|
||||
}
|
||||
|
||||
client.dbo.collection("banking").updateOne({"banking.userID":userID}, {$set: {"banking.guilds": updatedGuilds}}, function(err, res) {
|
||||
client.dbo.collection("banks").updateOne({"banking.userID":userID}, {$set: {"banking.guilds": updatedGuilds}}, function(err, res) {
|
||||
if (err) return false
|
||||
})
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user