Skip to content

Commit

Permalink
print url temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhin-s committed Oct 18, 2023
1 parent 30e45a4 commit df4d6bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit df4d6bb

Please sign in to comment.