[add]: transaction fix
This commit is contained in:
@@ -47,11 +47,7 @@ class RepaymentService(BaseService):
|
||||
return jsonify({
|
||||
"message": "Failed to save repayment details."
|
||||
}), 400
|
||||
|
||||
db.session.flush()
|
||||
|
||||
validated_data['refId'] = repayment.id
|
||||
validated_data['refModel'] = "repayment"
|
||||
|
||||
|
||||
#Update Loan status
|
||||
Loan.update_status(loan_id = loan_id, status = LoanStatus.REPAID)
|
||||
|
||||
Reference in New Issue
Block a user