added loop
This commit was merged in pull request #27.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user