Merge branch 'testing' of DigiFi/FirstCore into master
This commit is contained in:
@@ -30,6 +30,7 @@ class TransactionService:
|
|||||||
|
|
||||||
# Extract filters
|
# Extract filters
|
||||||
account_id = filters.get('account_id')
|
account_id = filters.get('account_id')
|
||||||
|
transaction_id = filters.get('transaction_id')
|
||||||
transaction_type = filters.get('type')
|
transaction_type = filters.get('type')
|
||||||
channel = filters.get('channel')
|
channel = filters.get('channel')
|
||||||
start_date = filters.get('start_date')
|
start_date = filters.get('start_date')
|
||||||
@@ -54,6 +55,7 @@ class TransactionService:
|
|||||||
# Get transactions with optional filters and pagination
|
# Get transactions with optional filters and pagination
|
||||||
transactions, total_count = Transaction.get_all_transactions(
|
transactions, total_count = Transaction.get_all_transactions(
|
||||||
account_id=account_id,
|
account_id=account_id,
|
||||||
|
transaction_id=transaction_id,
|
||||||
transaction_type=transaction_type,
|
transaction_type=transaction_type,
|
||||||
channel=channel,
|
channel=channel,
|
||||||
start_date=start_date,
|
start_date=start_date,
|
||||||
@@ -97,4 +99,4 @@ class TransactionService:
|
|||||||
logger.error(f"An error occurred: {str(e)}", exc_info=True)
|
logger.error(f"An error occurred: {str(e)}", exc_info=True)
|
||||||
return jsonify({
|
return jsonify({
|
||||||
"message": "Internal Server Error"
|
"message": "Internal Server Error"
|
||||||
}), 500
|
}), 500
|
||||||
Reference in New Issue
Block a user