Skip to content

Commit

Permalink
Changing the cache time for code requests to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sheehan-edx committed Jan 25, 2021
1 parent 803b0db commit c15d1c7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ const fetchOffers = (queryOptions) => {
const query = qs.stringify(queryOptions);
const config = getConfig();
const offersUrl = `${config.ECOMMERCE_BASE_URL}/api/v2/enterprise/offer_assignment_summary/?${query}`;
const httpClient = getAuthenticatedHttpClient({
useCache: config.USE_API_CACHE,
});
return httpClient.get(offersUrl);
return getAuthenticatedHttpClient().get(offersUrl);
};

export { fetchOffers };

0 comments on commit c15d1c7

Please sign in to comment.