diff --git a/lib/apagones-client.js b/lib/apagones-client.js index e1fce9b..53f5dbc 100644 --- a/lib/apagones-client.js +++ b/lib/apagones-client.js @@ -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) {