fix: Balance Doubled When Depositing Funds
This commit is contained in:
1 parent
948046948a
commit
e2d360d5de
1 file changed
+1
-1
@@ -202,7 +202,7 @@ class UserWalletHistoryRepository:
|
||||
return False
|
||||
|
||||
# Update wallet balance and order status
|
||||
wallet.balance = float(wallet.balance) + float(obj.amount)
|
||||
# wallet.balance = float(wallet.balance) + float(obj.amount)
|
||||
obj.status = 1 # 1=completed
|
||||
obj.balance_after = float(wallet.balance)
|
||||
obj.transaction_id = transaction_id
|
||||
|
||||
Reference in new issue
Block a user