diff --git a/.travis.yml b/.travis.yml index 6e945f15..1651caaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: node_js sudo: false node_js: - - "6.11.3" + - 10 services: - mongodb diff --git a/package.json b/package.json index f90f0fbd..139f5dbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "podcloud-feeds", - "version": "1.1.2", + "version": "1.1.3", "description": "GraphQL API for podcloud", "scripts": { "test": "NODE_ENV=test mocha --opts test/mocha.opts", diff --git a/src/connectors/connection.js b/src/connectors/connection.js index 58fef4bd..130d00d1 100644 --- a/src/connectors/connection.js +++ b/src/connectors/connection.js @@ -5,7 +5,10 @@ function mongo_connect(conn_str) { const mongo = Mongoose.connect( conn_str, { - useMongoClient: true + useMongoClient: true, + autoReconnect: true, + reconnectTries: Number.MAX_VALUE, + bufferMaxEntries: 0 }, err => { if (err) {