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(