getiing data from mongoseries AND from influx possible
databases/mongo.js - fetchNoiseAVGData added sensorspecials/noise.js - read also from mongo
This commit is contained in:
@@ -432,6 +432,7 @@ const getAPIprops = (opt) => {
|
||||
|
||||
const getNoiseAVGData = async (opts) => {
|
||||
let ret = await influx.fetchNoiseAVGData(opts)
|
||||
let retM = await mongo.fetchNoiseAVGData(opts)
|
||||
|
||||
if(ret.err) {
|
||||
return returnOnError(ret, ret.err, getNoiseAVGData.name)
|
||||
|
||||
Reference in New Issue
Block a user