Skip to content

Commit

Permalink
Added new url parser option
Browse files Browse the repository at this point in the history
  • Loading branch information
Froilan Irizarry committed Apr 14, 2019
1 parent 84b7530 commit b37da3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apagones-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ApagonesClient {

async function getApagonesDBClient() {
try {
const client = new MongoClient(process.env.MONGODB_URI);
const client = new MongoClient(process.env.MONGODB_URI,{ useNewUrlParser: true });
await client.connect();
return new ApagonesClient(client.db());
} catch(error) {
Expand Down

0 comments on commit b37da3a

Please sign in to comment.