fix: Reset wallet balance and discount balance to zero in DayaLoan processing
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m7s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m7s
This commit is contained in:
+2
-2
@@ -210,7 +210,7 @@ public class CheckAndProcessDayaLoansCommandHandler : IRequestHandler<CheckAndPr
|
|||||||
var mainLog = new UserWalletChangeLog
|
var mainLog = new UserWalletChangeLog
|
||||||
{
|
{
|
||||||
WalletId = wallet.Id,
|
WalletId = wallet.Id,
|
||||||
CurrentBalance = wallet.Balance,
|
CurrentBalance = 0,
|
||||||
ChangeValue = SystemConstants.DayaLoanAmount,
|
ChangeValue = SystemConstants.DayaLoanAmount,
|
||||||
CurrentNetworkBalance = wallet.NetworkBalance,
|
CurrentNetworkBalance = wallet.NetworkBalance,
|
||||||
ChangeNerworkValue = 0,
|
ChangeNerworkValue = 0,
|
||||||
@@ -230,7 +230,7 @@ public class CheckAndProcessDayaLoansCommandHandler : IRequestHandler<CheckAndPr
|
|||||||
ChangeValue = 0,
|
ChangeValue = 0,
|
||||||
CurrentNetworkBalance = wallet.NetworkBalance,
|
CurrentNetworkBalance = wallet.NetworkBalance,
|
||||||
ChangeNerworkValue = 0,
|
ChangeNerworkValue = 0,
|
||||||
CurrentDiscountBalance = wallet.DiscountBalance,
|
CurrentDiscountBalance = 0,
|
||||||
ChangeDiscountValue = discountAmount,
|
ChangeDiscountValue = discountAmount,
|
||||||
IsIncrease = true,
|
IsIncrease = true,
|
||||||
RefrenceId = transaction.Id
|
RefrenceId = transaction.Id
|
||||||
|
|||||||
Reference in New Issue
Block a user