AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Fix failing websocket service due to not requiring DB connection
Zamil Majdy3458b94fcc8c
diff --git a/autogpt_platform/backend/backend/data/db.py b/autogpt_platform/backend/backend/data/db.pyindex 058a74f8f4..0702c47730 100644--- a/autogpt_platform/backend/backend/data/db.py+++ b/autogpt_platform/backend/backend/data/db.py@@ -24,9 +24,7 @@ def add_param(url: str, key: str, value: str) -> str:return urlunparse(p._replace(query=urlencode(qs)))-DATABASE_URL = os.getenv("DATABASE_URL")-if not DATABASE_URL:- raise ValueError("DATABASE_URL is not set.")+DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://localhost:5432")CONN_LIMIT = os.getenv("DB_CONNECTION_LIMIT")if CONN_LIMIT: