From cc826a046948609b3a9a65129749e31cd8c68a3a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 19 Jun 2025 06:52:07 -0400 Subject: [PATCH] added return --- app/routes/autocall.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/routes/autocall.py b/app/routes/autocall.py index d1471b3..de55a0f 100644 --- a/app/routes/autocall.py +++ b/app/routes/autocall.py @@ -128,7 +128,7 @@ def salary_detect(): logger.info(f"Failed to save salary: {e}") # *************************************************** - # PART 2 SELECT * FROM salaries WHERE status IS NULL ORDER BY id ASC + # PART 2 SELECT * FROM salaries WHERE status IS 'START' ORDER BY id ASC # ************************************************** #in the loop @@ -145,7 +145,8 @@ def salary_detect(): # initiated_by='SALARY_DETECT' # ) - # by the time you call this you must be on repayment table - response = SimbrellaClient.collect_loan_user_salary_detect(data) + # by the time you call this you must be on repayment table + SimbrellaClient.collect_loan_user_salary_detect(data) + return_data=[] - return response \ No newline at end of file + return ResponseHelper.success(return_data, "AutoCall Successful")