Skip to content

Commit

Permalink
Fixed #4 support + symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
vseenivasan committed Aug 8, 2022
1 parent 43788e5 commit f8a234c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/influx.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const request = require('request');

exports.readInflux = (indata) => {
return new Promise(function(resolve, reject) {
query = ""+indata.server+"/query?db="+indata.db+"&q="+indata.qry

let inq = indata.qry.replace("+", "%2B")
query = ""+indata.server+"/query?db="+indata.db+"&q="+inq

request.get(query,
{'auth': {'user': indata.user, 'pass': indata.pwd, 'sendImmediately': false } },
Expand Down

0 comments on commit f8a234c

Please sign in to comment.