From 32c25872b7f43d952bf7934132696850d6dc1344 Mon Sep 17 00:00:00 2001 From: Abhijit Gupta Date: Mon, 4 Dec 2023 08:21:20 -0500 Subject: [PATCH] Update connection string --- backend/src/data/mongo/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/data/mongo/main.py b/backend/src/data/mongo/main.py index d06b7087..e32747c7 100644 --- a/backend/src/data/mongo/main.py +++ b/backend/src/data/mongo/main.py @@ -5,7 +5,7 @@ def get_conn_str(password: str, database: str) -> str: - return f"mongodb://root:{password}@backend-shard-00-00.aqlpb.mongodb.net:27017,backend-shard-00-01.aqlpb.mongodb.net:27017,backend-shard-00-02.aqlpb.mongodb.net:27017/{database}?ssl=true&replicaSet=atlas-25pkcv-shard-0&authSource=admin&retryWrites=true&w=majority" + return f"mongodb+srv://root:{password}@backend.aqlpb.mongodb.net/?retryWrites=true&w=majority" if LOCAL: