TASK22057: phase18 additional consolidation slices

This commit is contained in:
2026-03-14 06:52:17 +00:00
parent daa38d6459
commit fffe1d19dd
15 changed files with 460 additions and 66 deletions
@@ -60,7 +60,7 @@ const groupArray = (arr) => {
obj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
], // Change 'name' to 'userName'
count: count, // Add 'count' as 'occurrences'
count: count // Add 'count' as 'occurrences'
};
result.push(transformedObj);
@@ -71,6 +71,11 @@ const groupArray = (arr) => {
export default async function ApiProxy(req, res) {
var incidentID = req.query.incidentid;
if (typeof incidentID === "undefined" || incidentID.length === 0) {
return res.status(400).json();
}
var token = await getToken();
var queryUrl =
@@ -78,8 +83,6 @@ export default async function ApiProxy(req, res) {
incidentID +
" and not(contains(pinswg_name,'_Appeal_Form.pdf'))&$select=pinswg_name,pinswg_isharedocumentlocations";
console.log("docu: ", WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
return axios
.get(
WEBAPI_URL + queryUrl + hashAPIPath(queryUrl),