WIP WIP test mit mongoseries

actions/getsensordata
   - in getActData send mongo data

databases/mongo.js
   - fetchActData: sort by datetime and project sot all data
This commit is contained in:
rxf
2023-06-03 19:21:23 +02:00
parent edeb871c2b
commit 30bd17b130
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -137,8 +137,10 @@ export async function getSensorData(params) {
// export const getActData = async (opts) => {
export async function getActData(opts) {
let retI = await influx.fetchActData(opts)
retI.mongo = false
let retM = await mongo.fetchActData(opts)
return retI
retM.mongo = true
return retM
}