From ac21337d4df21a3605eea4ec81617fce97204e67 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 4 Jul 2025 14:04:55 +0100 Subject: [PATCH] corrected query for getappealtypes to exclude sips --- pages/api/endpoint/getappealtypes_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/endpoint/getappealtypes_api.js b/pages/api/endpoint/getappealtypes_api.js index a206cb59..596defca 100644 --- a/pages/api/endpoint/getappealtypes_api.js +++ b/pages/api/endpoint/getappealtypes_api.js @@ -37,7 +37,7 @@ export default async function ApiProxy(req, res) { var queryUrl = "stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' " + (process.env.SHOWSIPS !== "true" - ? "and pinswg_appealcasetype ne 846040002" + ? "and attributevalue ne 846040002" : "") + "&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc"; @@ -47,7 +47,7 @@ export default async function ApiProxy(req, res) { // "stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc"; //"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Developments of National Significance' and value ne 'LDP' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc"; - //console.log(queryUrl); + console.log(queryUrl); return axios .get(