Added Transaction offer

This commit was merged in pull request #17.
This commit is contained in:
Azeez Muibi
2025-05-19 13:43:49 +01:00
parent 3ae29b69b5
commit 26868c0043
2 changed files with 17 additions and 14 deletions
@@ -80,7 +80,7 @@ class TransactionOfferService:
'max_amount': offer.max_amount,
'eligible_amount': offer.eligible_amount,
'tenor': offer.tenor,
'created_at': offer.created_at.isoformat(),
'created_at': offer.created_at.isoformat() if offer.created_at else None,
'updated_at': offer.updated_at.isoformat() if offer.updated_at else None
})
@@ -106,4 +106,4 @@ class TransactionOfferService:
logger.error(f"An error occurred: {str(e)}", exc_info=True)
return jsonify({
"message": "Internal Server Error"
}), 500
}), 500