diff --git a/backend/api/main.py b/backend/api/main.py index b350b2e..e9cdbd7 100644 --- a/backend/api/main.py +++ b/backend/api/main.py @@ -766,8 +766,7 @@ async def check_orion(): "message": None if status else "Failed to connect"} except Exception as e: logging.error(f"Error checking Orion: {e}") - return {"status": False, "latency": latency, - "latency_unit": "ms", "message": str(e)} + return {"status": False, "message": str(e)} async def check_postgres(): """ Check whether the PostgreSQL database is running properly. @@ -780,10 +779,8 @@ async def check_postgres(): return {"status": True, "latency": latency, "latency_unit": "ms", "message": None} except Exception as e: - latency = (time.time() - start_time)*1000 logging.error(f"Error checking PostgreSQL: {e}") - return {"status": False, "latency": latency, - "latency_unit": "ms", "message": str(e)} + return {"status": False, "message": str(e)} async def check_redis(): """ Check whether the Redis cache is running properly. @@ -795,10 +792,8 @@ async def check_redis(): return {"status": True, "latency": latency, "latency_unit": "ms", "message": None} except Exception as e: - latency = (time.time() - start_time)*1000 logging.error(f"Error checking Redis: {e}") - return {"status": False, "latency": latency, - "latency_unit": "ms", "message": str(e)} + return {"status": False, "message": str(e)} if __name__ == "__main__": uvicorn.run(app, host="0.0.0.0", port=8000, reload=True, log_level=settings.LOG_LEVEL.lower()) \ No newline at end of file diff --git a/frontend/package-lock.json b/frontend/package-lock.json index dbf7e53..6a2b4f6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1099,9 +1099,9 @@ } }, "node_modules/rollup": { - "version": "3.21.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.21.1.tgz", - "integrity": "sha512-GpUgqWCw56OSiBKf7lcAITstYiBV1/EKaKYPl9r8HgAxc6/qYAVw1PaHWnvHWFziRaf4HsVCDLq/IGtBi1K/Zw==", + "version": "3.29.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.5.tgz", + "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==", "dev": true, "bin": { "rollup": "dist/bin/rollup"