fix ident

This commit is contained in:
CHIEFSOFT\ameye
2025-03-04 13:37:37 -05:00
parent 0d0f801e2c
commit c94b953bd9
+9 -9
View File
@@ -540,15 +540,15 @@ def pending_loans():
@app.route('/loan/repay', methods=["POST"])
def repay_loans():
try:
data = request.json
if not data:
return {
"message": "Please provide pin,loan_id,accountID",
"data": None,
"error": "Bad request"
}, 400
# validate input
try:
data = request.json
if not data:
return {
"message": "Please provide pin,loan_id,accountID",
"data": None,
"error": "Bad request"
}, 400
# validate input
bvn = data["bvn"]
accountid = data["accountid"]
loan_id = data["bvn"]