[fix]: swagger and health check response
This commit was merged in pull request #67.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user