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" } }