[fix]: Loan id

This commit was merged in pull request #5.
This commit is contained in:
VivianDee
2025-04-10 13:23:47 +01:00
parent b22d2f358e
commit 7026c8378b
2 changed files with 7 additions and 5 deletions
+1 -2
View File
@@ -43,10 +43,9 @@ class ProvideLoanService(BaseService):
}), 400
# Save the loan details
loan_id = f"loan_{transaction.id}"
loan_id = f"loan_{transaction_id}"
loan = Loan.create_loan(
id=loan_id,
customer_id=customer_id,
account_id=account_id,
offer_id=validated_data.get('offerId'),