feat(relay): apply policy overrides for my-portal case and representation endpoints
This commit is contained in:
@@ -36,9 +36,18 @@ export default async function ApiProxy(req, res) {
|
||||
incidentID +
|
||||
" and pinswg_publishtoweb eq true&$count=true&$orderby=createdon desc";
|
||||
|
||||
const relayPolicy = {
|
||||
method: "GET",
|
||||
timeoutMs: 8000,
|
||||
maxRetries: 2,
|
||||
retryBaseDelayMs: 150,
|
||||
retryMaxDelayMs: 800
|
||||
};
|
||||
|
||||
return relayGet({
|
||||
queryUrl,
|
||||
res,
|
||||
relayPolicy,
|
||||
errorResponse: {
|
||||
status: 400,
|
||||
code: "REPRESENTATIONS_FETCH_FAILED",
|
||||
|
||||
Reference in New Issue
Block a user