corrected commit error

This commit was merged in pull request #37.
This commit is contained in:
Chinenye Nmoh
2025-07-08 10:49:04 +01:00
parent 39d9abf5ec
commit 23574a433a
5 changed files with 67 additions and 32 deletions
+4 -2
View File
@@ -150,10 +150,11 @@ class Repayment(db.Model):
try:
logger.info(f"Updating repay date for repayment ID {repayment_id} to {current_time}")
db.session.commit()
return repayment.to_dict()
except Exception as e:
db.session.rollback()
logger.error(f"Failed to update repay date: {e}")
raise
raise e
@classmethod
def set_repay_verify_date(cls, repayment_id, customer_id):
"""
@@ -181,11 +182,12 @@ class Repayment(db.Model):
except Exception as e:
db.session.rollback()
logger.error(f"Failed to update repay verify date: {e}")
raise
raise e
@classmethod
def set_repay_result(cls, repayment_id, result, description):
logger.info("repay result called")
"""
Update the repayment result and description of the repayment with the given repayment_id.
"""