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:
rxf
2023-06-08 17:08:03 +02:00
parent 30bd17b130
commit d987ecf5c4
2 changed files with 115 additions and 19 deletions
+1
View File
@@ -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)