From f9e6d8c635e8fea180a31fdeb1368d9d926ecdee Mon Sep 17 00:00:00 2001 From: Pof Magicfingers Date: Tue, 30 Oct 2018 20:37:41 +0100 Subject: [PATCH 1/4] Update node version in travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6e945f15..6e9fbd11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: node_js sudo: false node_js: - - "6.11.3" + - 11 services: - mongodb From 2ba3f2689bafbc40ce082f3c419139ffcc7a6b9c Mon Sep 17 00:00:00 2001 From: Pof Magicfingers Date: Thu, 1 Nov 2018 10:42:13 +0100 Subject: [PATCH 2/4] Use node v10 in travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6e9fbd11..1651caaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: node_js sudo: false node_js: - - 11 + - 10 services: - mongodb From 0457e3eb8db830a7efeb6b25b467fa6fcb82f1d6 Mon Sep 17 00:00:00 2001 From: Pof Magicfingers Date: Sat, 29 Dec 2018 02:17:06 +0100 Subject: [PATCH 3/4] Add auto reconnect config --- src/connectors/connection.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { From ce1a499a7b8e23a3eeb8bf31924519029c99c7db Mon Sep 17 00:00:00 2001 From: Pof Magicfingers Date: Sat, 29 Dec 2018 02:27:37 +0100 Subject: [PATCH 4/4] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",