From 934dd23e38b14a49a2da92ca27bd1ebf206679fd Mon Sep 17 00:00:00 2001 From: Matthew VanTassel Date: Sun, 12 Feb 2017 09:38:20 -0400 Subject: [PATCH] Update influx package to latest version to support newer influx instances --- nzb2influx.js | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nzb2influx.js b/nzb2influx.js index 3b350a5..9671e0d 100644 --- a/nzb2influx.js +++ b/nzb2influx.js @@ -1,11 +1,11 @@ 'use strict'; -const influx = require('influx'); +const Influx = require('influx'); const nzbget = require('node-nzbget'); const checkInterval = process.env.UPDATE_INTERVAL_MS || 1000 * 30; -const influxClient = influx({ +const influxClient = new Influx.InfluxDB({ host: process.env.INFLUX_HOST || 'localhost', port: process.env.INFLUX_PORT || 8086, protocol: process.env.INFLUX_PROTOCOL || 'http', diff --git a/package.json b/package.json index 6247996..10ed0a2 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "nzb2influx", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "start": "node nzb2influx.js" }, "devDependencies": { - "influx": "^4.2.2", + "influx": "~5.0", "node-nzbget": "0.0.4" } }