Skip to content

Commit

Permalink
Merge pull request #188 from edx/alex-sheehan-edx/ENT-3952
Browse files Browse the repository at this point in the history
Changing the cache time for code requests to 30 seconds
  • Loading branch information
alex-sheehan-edx authored Jan 25, 2021
2 parents dc28cd1 + c15d1c7 commit 8f9e292
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 8f9e292

Please sign in to comment.