fix:Relate to transaction_id value when admin recharge for user
This commit is contained in:
1 parent
4e3fd1afaf
commit
948046948a
2 files changed
+2
No files matched your search
@@ -42,6 +42,7 @@ class UserWalletHistoryRepository:
|
||||
amount=amount,
|
||||
balance_after=0.00,
|
||||
type=TransactionType.DEPOSIT,
|
||||
transaction_id=transaction_id,
|
||||
status=status,
|
||||
created_at=now,
|
||||
updated_at=now,
|
||||
|
||||
@@ -313,6 +313,7 @@ class PaymentService:
|
||||
new_balance=new_balance,
|
||||
expected_balance=current_wallet.balance
|
||||
)
|
||||
logger.info(f"Attempt {attempt + 1}: Balance update successful for user_id {user_id}, new balance: {new_balance},success:{success}")
|
||||
|
||||
if success:
|
||||
self._delete_wallet_cache(user_id)
|
||||
|
||||
Reference in new issue
Block a user