Skip to content

Commit

Permalink
[Release] Stage to Main (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchika4 authored Apr 25, 2024
2 parents 5291cb1 + 1332031 commit 88a24e8
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 99 deletions.
4 changes: 4 additions & 0 deletions libs/blocks/caas-marquee/caas-marquee.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ async function getAllMarquees(promoId, origin) {

/* eslint-disable object-curly-newline */
const response = await fetch(`${endPoint}?${payload}`, {
// TODO: refactor to not use AbortSignal.timeout() as it's not supported for Safari 14
/* eslint-disable-next-line */
signal: AbortSignal.timeout(REQUEST_TIMEOUT),
}).catch((error) => fetchExceptionHandler('getAllMarquees', error));

Expand All @@ -384,6 +386,8 @@ async function getMarqueeId() {
'x-api-key': 'ChimeraAcom',
},
body: `{"endpoint":"acom-banner-recom-v1","contentType":"application/json","payload":{"data":{"visitedLinks": ${JSON.stringify(visitedLinks)}, "segment": ${JSON.stringify(segments)}}}}`,
// TODO: refactor to not use AbortSignal.timeout() as it's not supported for Safari 14
/* eslint-disable-next-line */
signal: AbortSignal.timeout(REQUEST_TIMEOUT),
}).catch((error) => fetchExceptionHandler('getMarqueeId', error));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ const getSubscriptions = async ({ queryParams }, format) => {
method: 'GET',
cache: 'no-cache',
credentials: 'same-origin',
// TODO: refactor to not use AbortSignal.timeout() as it's not supported for Safari 14
/* eslint-disable-next-line */
signal: AbortSignal.timeout(API_WAIT_TIMEOUT),
headers: {
Authorization: `Bearer ${window.adobeIMS.getAccessToken().token}`,
Expand Down
Loading

0 comments on commit 88a24e8

Please sign in to comment.