[fix]: swagger and health check response

This commit was merged in pull request #67.
This commit is contained in:
VivianDee
2025-10-27 19:42:23 +01:00
parent 6221447353
commit d99640345a
3 changed files with 23 additions and 19 deletions
+3 -3
View File
@@ -163,19 +163,19 @@ def health_check():
status = "failed"
errors.append(f"Events Service connection failed: {str(e)}")
# Check Emulator health
# Check Bank health
try:
emulator_response = SimbrellaIntegration.health_check()
if emulator_response.status_code != 200:
bank_status = "Connection Failed"
status = "failed"
errors.append(f"Emulator response: {emulator_response.text}")
errors.append(f"Bank Connection response: {emulator_response.text}")
except Exception as e:
bank_status = "Connection Failed"
status = "failed"
errors.append(f"Emulator connection failed: {str(e)}")
errors.append(f"Connection to Bank failed: {str(e)}")
response = {