12.7.11 fix createBank

This commit is contained in:
SowinskiBraeden committed 2022-10-12 19:24:58 -07:00
1 parent 5891df846c
commit 66dbd86957
1 file changed
+7 -10
+7 -10
View File
@@ -8,17 +8,14 @@ let bankSchema = mongoose.Schema({
}); });
bankSchema.methods.createBank = function (userID, guildID, startingBalance) { bankSchema.methods.createBank = function (userID, guildID, startingBalance) {
this.banking = { this.banking.userID = userID;
userID: userID, this.banking.guilds = {};
guilds: { this.banking.guilds[guildID] = {
[`${guildID}`]: { account: {
account: { balance: startingBalance,
balance: startingBalance, cash: 0.00,
cash: 0.00,
}
}
} }
} };;
}; };
/* /*