Skip to content

Commit

Permalink
Bank Deposit bug resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-webdev committed Nov 23, 2023
1 parent 1b1f0e4 commit e50b562
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions React-V1/server/controller/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ const getLoanList = (req,res) => {
else
{
res.send(loanList);
console.log(loanList);
// console.log(loanList);
}
})
}
Expand All @@ -1035,9 +1035,9 @@ const updateBankLoan = (req,res) => {
const payLoanByLevel = req.body.payLoanByLevel;

playerDetail.updateOne(
{ userAccount: { $eq: userAccount } },
{ userAccount: userAccount },
{
$set: { bankLoan: { $eq: bankLoan }, gameCoins: { $eq: gameCoins }, payLoanByLevel: { $eq: payLoanByLevel } },
$set: { bankLoan: bankLoan, gameCoins: gameCoins, payLoanByLevel: payLoanByLevel },
},
(err) => {
if(err) {
Expand Down Expand Up @@ -1067,7 +1067,7 @@ const getDepositList = (req,res) => {
else
{
res.send(depositList);
console.log(depositList);
// console.log(depositList);
}
})
}
Expand All @@ -1079,9 +1079,9 @@ const updateBankDeposit = (req,res) => {
const depositAmount = req.body.depositAmount;

playerDetail.updateOne(
{ userAccount: { $eq: userAccount } },
{ userAccount: userAccount },
{
$set: { timeRemainingBeforeWithdrawal: { $eq: timeRemainingBeforeWithdrawal }, gameCoins: { $eq: gameCoins }, bankDeposit: { $eq: depositAmount } },
$set: { timeRemainingBeforeWithdrawal: timeRemainingBeforeWithdrawal, gameCoins: gameCoins, bankDeposit: depositAmount },
},
(err) => {
if(err) {
Expand Down

0 comments on commit e50b562

Please sign in to comment.