From c5a99d400ab9df7c8b72bf5aa25ec70d94a3c1bb Mon Sep 17 00:00:00 2001 From: Christopher McCormack Date: Sun, 29 Nov 2020 15:58:14 -0700 Subject: [PATCH] migrated to mongodb atlas --- db.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db.js b/db.js index fb3a386..ea9e844 100644 --- a/db.js +++ b/db.js @@ -3,10 +3,12 @@ require("dotenv").config({path: path.resolve(__dirname, ".env"),}) const { dbuser, dbpw, dbhost, dbname, } = process.env module.exports = { - url: `mongodb://${dbhost}/${dbname}`, + url: `mongodb+srv://${dbhost}/${dbname}`, db: dbname, options: { user: dbuser, pass: dbpw, + useUnifiedTopology: true, + useNewUrlParser: true, }, } \ No newline at end of file