Commit 80f8fb1e by Daniel Lee

Revert "Fix ResponseParser for InfluxDB to return only string values"

This reverts commit 92e5968f.

Ref #12009
parent a376de56
......@@ -38,7 +38,7 @@ export default class ResponseParser {
});
return _.map(res, value => {
return { text: value.toString() };
return { text: value };
});
}
}
......
......@@ -105,9 +105,9 @@ describe('influxdb response parser', () => {
it('should return second column', () => {
expect(_.size(result)).toBe(3);
expect(result[0].text).toBe('0');
expect(result[1].text).toBe('15');
expect(result[2].text).toBe('20.2');
expect(result[0].text).toBe(0.0);
expect(result[1].text).toBe(15.0);
expect(result[2].text).toBe(20.2);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment