viele Anpassungen
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
// Fetch the properties for the given sensor
|
||||
|
||||
import * as mongo from "../databases/mongo.js"
|
||||
import * as mock from "../mocks/mongo_mock.js"
|
||||
import {returnOnError} from "../utilities/reporterror.js"
|
||||
import checkParams from "../utilities/checkparams.js"
|
||||
|
||||
const mockdb = false
|
||||
|
||||
let readProperties
|
||||
if (mockdb) {
|
||||
readProperties = mock.readProperties
|
||||
} else {
|
||||
readProperties = mongo.readProperties
|
||||
}
|
||||
let readProperties = mongo.readProperties
|
||||
|
||||
// Read properties for sensorid and properties for all other sensors on same location
|
||||
export const getOneProperty = async (params) => {
|
||||
|
||||
Reference in New Issue
Block a user