From b9e69fd88c655576baa3057c3a3acd6507c4a67b Mon Sep 17 00:00:00 2001 From: Mario-SO Date: Thu, 19 Dec 2024 11:28:45 +0100 Subject: [PATCH] fixed db password (ai suggestion) --- packages/server/src/databases/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/databases/index.ts b/packages/server/src/databases/index.ts index 954f95589..f1aa2a94a 100644 --- a/packages/server/src/databases/index.ts +++ b/packages/server/src/databases/index.ts @@ -1,7 +1,7 @@ import { config } from '@config'; const { host, user, name, password } = config.db; export const dbConnection = { - url: `mongodb://${user}:${password}@${host}/${name}?authSource=admin&retryWrites=true&w=majority`, + url: `mongodb://${user}:${encodeURIComponent(password)}@${host}/${name}?authSource=admin&retryWrites=true&w=majority`, // For local development use this url // url: `mongodb+srv://${user}:${password}@${host}/${name}?authSource=admin`, options: {