12.7.11 fix createBank
This commit is contained in:
1 file changed
+7
-10
+7
-10
@@ -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,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
};;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user