added overdue endpoint

This commit was merged in pull request #42.
This commit is contained in:
Chinenye Nmoh
2025-08-20 18:08:44 +01:00
parent d50436253a
commit 97070f3fed
5 changed files with 110 additions and 4 deletions
+7
View File
@@ -99,3 +99,10 @@ class LoanService:
update the loan balance after successful repayment
"""
return Loan.update_loan_balance(loan_id,amount_collected)
@classmethod
def get_overdue_loans(cls):
"""
Get all overdue loans.
"""
return Loan.get_overdue_loans()