Patch mongodb connection string

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2024-11-22 21:09:04 +00:00
parent d54e223369
commit eecafee7cf

View File

@ -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}?authSource=owlboard`;
const uri = `mongodb://${dbUser}:${dbPass}@${dbHost}:${dbPort}/?authSource=owlboard`;
const { MongoClient } = require("mongodb");