diff --git a/src/Storefront/Controllers/CustomerAccountController.cs b/src/Storefront/Controllers/CustomerAccountController.cs index d6ec9bf..35825d5 100644 --- a/src/Storefront/Controllers/CustomerAccountController.cs +++ b/src/Storefront/Controllers/CustomerAccountController.cs @@ -122,7 +122,7 @@ namespace Microsoft.Store.PartnerCenter.Storefront.Controllers // Get all subscriptions of customer from PC ResourceCollection customerAllSubscriptions = await localeSpecificPartnerCenterClient.Customers.ById(clientCustomerId).Subscriptions.GetAsync().ConfigureAwait(false); - IEnumerable customerSubscriptions = await ApplicationDomain.Instance.CustomerSubscriptionsRepository.RetrieveAsync(Principal.PartnerCenterCustomerId).ConfigureAwait(false); + IEnumerable customerSubscriptions = await ApplicationDomain.Instance.CustomerSubscriptionsRepository.RetrieveAsync(clientCustomerId).ConfigureAwait(false); IEnumerable allPartnerOffers = await ApplicationDomain.Instance.OffersRepository.RetrieveAsync().ConfigureAwait(false); IEnumerable currentMicrosoftOffers = await ApplicationDomain.Instance.OffersRepository.RetrieveMicrosoftOffersAsync().ConfigureAwait(false); @@ -219,7 +219,7 @@ namespace Microsoft.Store.PartnerCenter.Storefront.Controllers }; // Capture the request for customer managed subscriptions and partner managed subscriptions for analysis. - Dictionary eventProperties = new Dictionary { { "CustomerId", Principal.PartnerCenterCustomerId } }; + Dictionary eventProperties = new Dictionary { { "CustomerId", clientCustomerId } }; // Track the event measurements for analysis. Dictionary eventMetrics = new Dictionary { { "ElapsedMilliseconds", DateTime.Now.Subtract(startTime).TotalMilliseconds }, { "CustomerManagedSubscriptions", customerManagedSubscriptions.Count }, { "PartnerManagedSubscriptions", partnerManagedSubscriptions.Count } };