done with task: check if transaction exists in the database #12

Merged
ameye merged 1 commits from oluyemi into master 2025-04-15 16:06:06 +00:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class SimbrellaClient:
# Check if the transaction exists # Check if the transaction exists
logger.info(f"Checking if transaction exists") logger.info(f"Checking if transaction exists")
transaction = TransactionService.get_transaction_by_id(transaction_id=data['transactionId']) transaction = TransactionService.get_transaction_by_transaction_id(transaction_id=data['transactionId'])
logger.info(f"Response from database: {transaction}") logger.info(f"Response from database: {transaction}")
if not transaction: if not transaction:
+1 -1
View File
@@ -3,7 +3,7 @@ from app.models import Transaction
class TransactionService: class TransactionService:
@staticmethod @staticmethod
def get_transaction_by_id(transaction_id): def get_transaction_by_transaction_id(transaction_id):
""" """
Get the transaction by ID Get the transaction by ID
""" """