This commit is contained in:
SowinskiBraeden committed 2023-03-28 17:26:42 -07:00
1 parent 53b5932baf
commit c1d4a93be7
2 files changed
+121 -1

No files matched your search

+3 -1
View File
@@ -15,6 +15,7 @@ userSchema.methods.createUser = function (userID, guildID, startingBalance, cash
balance: startingBalance,
cash: cash,
},
lastIncome: new Date('2000-01-01T00:00:00'),
};
};
@@ -30,7 +31,8 @@ function addUser(guilds, guildID, userID, client, startingBalance) {
bankAccount: {
balance: startingBalance,
cash: 0.00,
}
},
lastIncome: new Date('2000-01-01T00:00:00')
}
client.dbo.collection("users").updateOne({"user.userID":userID}, {$set: {"user.guilds": updatedGuilds}}, function(err, res) {