changes sandbox: {} to eval: true, caused errors in evaluated queries
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -51,7 +51,7 @@ export default async function ApiProxy(req, res) {
|
||||
const lpaGUID = jsonpath({
|
||||
path: '$..[?(@.name=="' + lpaid + '")]',
|
||||
json: lpaList,
|
||||
sandbox: {},
|
||||
eval: true,
|
||||
});
|
||||
|
||||
//console.log(
|
||||
|
||||
Reference in New Issue
Block a user