From df4d6bba72c32b3b8b835a62498a162d82e53c6f Mon Sep 17 00:00:00 2001 From: Stanislav Rassokhin Date: Wed, 18 Oct 2023 16:01:01 +0400 Subject: [PATCH] print url temporary --- utils/mongo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/mongo.js b/utils/mongo.js index de0a551..9b1c4d1 100644 --- a/utils/mongo.js +++ b/utils/mongo.js @@ -2,6 +2,8 @@ const mongoose = require('mongoose') const mongoUri = `mongodb+srv://${process.env.MONGO_USERNAME}:${process.env.MONGO_PASSWORD}@${process.env.MONGO_HOSTNAME}/${process.env.MONGO_DB}?retryWrites=true&w=majority` +console.info('\n\n', mongoUri, '\n\n') + const db = mongoose.connection db.on('connecting', function () { console.info('Connecting to MongoDB')