Skip to content

Commit

Permalink
fix: update conditionally blocked BFF queries (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 authored Dec 4, 2024
1 parent 01c8a57 commit b7eaa10
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions src/components/app/routes/data/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,33 +101,35 @@ export async function ensureEnterpriseAppData({

return subscriptionsData;
}),
queryClient.ensureQueryData(
queryRedeemablePolicies({
enterpriseUuid: enterpriseCustomer.uuid,
lmsUserId: userId,
}),
),
queryClient.ensureQueryData(
queryCouponCodes(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryEnterpriseLearnerOffers(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryBrowseAndRequestConfiguration(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryLicenseRequests(enterpriseCustomer.uuid, userEmail),
),
queryClient.ensureQueryData(
queryCouponCodeRequests(enterpriseCustomer.uuid, userEmail),
),
// Content Highlights
queryClient.ensureQueryData(
queryContentHighlightsConfiguration(enterpriseCustomer.uuid),
),
);
}
enterpriseAppDataQueries.push(...[
queryClient.ensureQueryData(
queryRedeemablePolicies({
enterpriseUuid: enterpriseCustomer.uuid,
lmsUserId: userId,
}),
),
queryClient.ensureQueryData(
queryCouponCodes(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryEnterpriseLearnerOffers(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryBrowseAndRequestConfiguration(enterpriseCustomer.uuid),
),
queryClient.ensureQueryData(
queryLicenseRequests(enterpriseCustomer.uuid, userEmail),
),
queryClient.ensureQueryData(
queryCouponCodeRequests(enterpriseCustomer.uuid, userEmail),
),
// Content Highlights
queryClient.ensureQueryData(
queryContentHighlightsConfiguration(enterpriseCustomer.uuid),
),
]);

if (getConfig().ENABLE_NOTICES) {
enterpriseAppDataQueries.push(
Expand Down

0 comments on commit b7eaa10

Please sign in to comment.