From d54e2233697a9e269d99ba852d9a87b966507666 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 22 Nov 2024 20:54:58 +0000 Subject: [PATCH] Fix authentication database setting Signed-off-by: Fred Boniface --- src/configs/version.configs.ts | 2 +- src/services/dbAccess.services.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/version.configs.ts b/src/configs/version.configs.ts index 12a4c0f..4ecb921 100644 --- a/src/configs/version.configs.ts +++ b/src/configs/version.configs.ts @@ -5,7 +5,7 @@ interface versions { const version: versions = { api: ["/api/v2"], - app: "2024.11.1", + app: "2024.11.2", }; module.exports = version; diff --git a/src/services/dbAccess.services.js b/src/services/dbAccess.services.js index 822ca3a..ff4fad3 100644 --- a/src/services/dbAccess.services.js +++ b/src/services/dbAccess.services.js @@ -5,7 +5,7 @@ const dbPass = process.env.OWL_DB_PASS || "twittwoo"; const dbName = process.env.OWL_DB_NAME || "owlboard"; const dbPort = process.env.OWL_DB_PORT || 27017; const dbHost = process.env.OWL_DB_HOST || "localhost"; -const uri = `mongodb://${dbUser}:${dbPass}@${dbHost}:${dbPort}`; +const uri = `mongodb://${dbUser}:${dbPass}@${dbHost}:${dbPort}?authSource=owlboard`; const { MongoClient } = require("mongodb");