Skip to content

Commit 37a24bc

Browse files
committed
Allow mongo connection to use new url parser to remove deprecation warning
1 parent d1c808e commit 37a24bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = app;
7171
// Mongo Connection + Server Start
7272
(async () => {
7373
try {
74-
const client = await MongoClient.connect(url, { poolSize: 20 });
74+
const client = await MongoClient.connect(url, { poolSize: 20, useNewUrlParser: true });
7575

7676
global.db = client.db('spacex-api');
7777

0 commit comments

Comments
 (0)