diff --git a/app/routes/autocall.py b/app/routes/autocall.py index ea5db98..927b0bb 100644 --- a/app/routes/autocall.py +++ b/app/routes/autocall.py @@ -167,7 +167,7 @@ def salary_detect(): try: loan_dict = loan.to_dict() repayment_data = { - "customerId": pending_salary.customer_id, + "customerId": loan_dict["customer_id"], "loanId": loan_dict["debtId"], "productId": loan_dict["productId"], "transactionId": loan_dict["transactionId"],