feat(relay): apply policy overrides for my-portal case and representation endpoints
This commit is contained in:
@@ -39,9 +39,18 @@ export default async function ApiProxy(req, res) {
|
||||
loggedInUserId +
|
||||
"&$select=pinswg_emailnotifications,modifiedon,pinswg_appealcasetype,pinswg_watchlistid,_pinswg_watchedcase_value,statuscode,pinswg_representationsubmitted,pinswg_representationtype&$count=true&$orderby=createdon desc&$expand=pinswg_WatchedCase($select=pinswg_AssociatedLPA)";
|
||||
|
||||
const relayPolicy = {
|
||||
method: "GET",
|
||||
timeoutMs: 8000,
|
||||
maxRetries: 2,
|
||||
retryBaseDelayMs: 150,
|
||||
retryMaxDelayMs: 800
|
||||
};
|
||||
|
||||
return relayGet({
|
||||
queryUrl,
|
||||
res,
|
||||
relayPolicy,
|
||||
transformData: (data) => {
|
||||
data.value.forEach(function (element) {
|
||||
element.ticketnumber = element.pinswg_WatchedCase?.ticketnumber;
|
||||
|
||||
Reference in New Issue
Block a user