Merged PR 2414: welsh version of contact us and heading for rep heading for IP rep type

welsh version of contact us and heading for rep heading for IP rep type

Related work items: #23484, #23910
This commit is contained in:
Robert Bond
2026-06-22 12:44:36 +00:00
parent 27fceffbc9
commit d7bb1acb10
6 changed files with 22 additions and 15 deletions
+6 -5
View File
@@ -114,7 +114,7 @@ export default async function ApiProxy(req, res) {
transformData: async (data, accessToken) => {
if (Object.prototype.hasOwnProperty.call(data, "@odata.nextLink")) {
const dataStr = JSON.stringify(data["@odata.nextLink"]);
data["@odata.nextLink"] = dataStr.split("/v8.2/")[1];
data["@odata.nextLink"] = dataStr.split("/v9.2/")[1];
}
if (searchString.projecttype != null) {
@@ -124,10 +124,11 @@ export default async function ApiProxy(req, res) {
try {
const projectTypeQuery =
"pinswg_sipses?$filter=_pinswg_sipscase_value eq " +
item.incidentid +
" and _pinswg_projecttype_value eq " +
searchString.projecttype +
"&$select=_pinswg_projecttype_value";
item.incidentid;
// +
// " and _pinswg_projecttype_value eq " +
// searchString.projecttype +
// "&$select=_pinswg_projecttype_value";
const projectTypeResponse = await relayGetData({
queryUrl: projectTypeQuery,
@@ -61,6 +61,14 @@ export default async function ApiProxy(req, res) {
queryUrl = queryUrl + getSelectQuery(appealType);
queryUrl =
appealType === "pinswg_sipses"
? queryUrl +
"&$expand=" +
"pinswg_sipscase($select=incidentid,ticketnumber,title,statuscode,pinswg_appealcasetype,pinswg_caseaddress,pinswg_lpareference,pinswg_appellantagent,pinswg_appellantfirstname,pinswg_appellantlastname,_pinswg_associatedlpa_value)," +
"pinswg_sips_pinswg_sipsprojecttype($select=_pinswg_sector_value,pinswg_name,pinswg_sipsprojecttypeid)"
: queryUrl;
const relayPolicy = RELAY_POLICY_BOUNDED_READ;
return relayGet({