added loop

This commit was merged in pull request #27.
This commit is contained in:
Chinenye Nmoh
2025-06-20 11:47:21 +01:00
parent 684833bd66
commit bcd9513a10
4 changed files with 19 additions and 9 deletions
+2 -1
View File
@@ -75,7 +75,7 @@ def refresh_collection():
repayment = RepaymentService.get_latest_repayment_without_repay_date()
#repayment = RepaymentService.get_latest_repayment_with_loanId(13735)
if not repayment:
logger.info(f"No repayment found without disbursement date")
logger.info(f"No repayment found without repay date")
return 0
logger.info(f"Calling repay loan endpoint with data: {repayment}")
repayment_data = repayment.to_dict()
@@ -86,6 +86,7 @@ def refresh_collection():
"debtId": repayment_data['loanId'],
"customerId": repayment_data['customerId'],
"productId": repayment_data['productId'],
"Id":repayment_data['Id']
}
logger.info(f"Data being sent to Simbrella: {data}")
logger.info(f"calling simbrella")