Skip to content

Commit 52ed92b

Browse files
connorconnor
authored andcommitted
update controller
1 parent 8354acb commit 52ed92b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

controllers.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ const mongoClient = new MongoClient(MONGO_URL, {
1515
useUnifiedTopology: true
1616
})
1717

18-
mongoClient.connect(MONGO_URL, {
19-
useNewUrlParser: true,
20-
useUnifiedTopology: true
21-
}).then((mongoClient) => {
18+
mongoClient.connect(MONGO_URL).then((mongoClient) => {
2219
client = mongoClient
2320
db = client.db() // Gets the default database from the connection string
2421
users = db.collection('users')

0 commit comments

Comments
 (0)