update jsonpath library

This commit is contained in:
2024-02-08 14:28:40 +00:00
parent f034f4be3d
commit 2af463fbe9
67 changed files with 961 additions and 966 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import {
consoleLogger,
getLPA,
} from "../../../actions";
import jsonpath from "jsonpath";
import { JSONPath as jsonpath } from "jsonpath-plus";
const WORDKEY = process.env.HASHKEY;
@@ -48,7 +48,7 @@ export default async function ApiProxy(req, res) {
const lpaList = await getLPA();
const lpaGUID = jsonpath.query(lpaList, '$..[?(@.name=="' + lpaid + '")]');
const lpaGUID = jsonpath('$..[?(@.name=="' + lpaid + '")]', lpaList);
console.log(
'$..[?(@.name="' + lpaid + '")]',