income
This commit is contained in:
2 files changed
+121
-1
No files matched your search
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user