All error messages in german and in englisch
This commit is contained in:
+3
-7
@@ -1,12 +1,8 @@
|
||||
// Fetch the actual (= newest) data out of the dbase to show it on the map
|
||||
import {DateTime} from "luxon"
|
||||
import {logit} from "../utilities/logit.js"
|
||||
import * as mongo from "../databases/mongo.js"
|
||||
import {reportError, returnOnError} from "../utilities/reporterror.js"
|
||||
import * as ERR from "../utilities/errortexts.js"
|
||||
import checkParams from "../utilities/checkparams.js";
|
||||
import {fetchFromInflux} from "./getsensorData.js";
|
||||
import {NOPROPSFOUND} from "../utilities/errortexts.js";
|
||||
import { returnOnError } from "../utilities/reporterror.js"
|
||||
import { fetchFromInflux } from "./getsensorData.js";
|
||||
|
||||
|
||||
// Default distance for center search ( in km)
|
||||
@@ -136,7 +132,7 @@ export var getData4map = async (params) => {
|
||||
// fetch mapdata from mongodb
|
||||
let { properties, err } = await mongo.getallProperties(mongo.properties_collection, query)
|
||||
if(err) {
|
||||
return returnOnError(ret, ERR.NOPROPSFOUND, getData4map.name)
|
||||
return returnOnError(ret, 'NOPROPSFOUND', getData4map.name)
|
||||
}
|
||||
let v4map = getValue4Map(typ)
|
||||
for (let sensor of properties) {
|
||||
|
||||
Reference in New Issue
Block a user