changes sandbox: {} to eval: true, caused errors in evaluated queries

This commit is contained in:
2025-04-15 17:25:14 +01:00
parent 854530e605
commit 87f0dcd811
55 changed files with 262 additions and 262 deletions
@@ -472,7 +472,7 @@ export default async function ApiProxy(req, res) {
searchResultsObj = jsonpath({
path: "$..[?(@ && @.pinswg_name)]",
json: searchResultsObj,
sandbox: {},
eval: true,
});
const getIncidentResultsObj = await Promise.all(
@@ -564,7 +564,7 @@ export default async function ApiProxy(req, res) {
searchResultsObj = jsonpath({
path: "$..[?(@ && @.pinswg_name)]",
json: searchResultsObj,
sandbox: {},
eval: true,
});
searchResultsObj = searchResultsObj.filter((arr) => arr.incidentid != null);
+1 -1
View File
@@ -51,7 +51,7 @@ export default async function ApiProxy(req, res) {
const lpaGUID = jsonpath({
path: '$..[?(@.name=="' + lpaid + '")]',
json: lpaList,
sandbox: {},
eval: true,
});
//console.log(