diff --git a/core/server/api/canary/utils/serializers/output/products.js b/core/server/api/canary/utils/serializers/output/products.js index 4c44d86fa6..5113d3f758 100644 --- a/core/server/api/canary/utils/serializers/output/products.js +++ b/core/server/api/canary/utils/serializers/output/products.js @@ -73,6 +73,7 @@ function serializeProduct(product, options, apiType) { name: json.name, description: json.description, slug: json.slug, + type: json.type, created_at: json.created_at, updated_at: json.updated_at, stripe_prices: json.stripePrices ? json.stripePrices.map(price => serializeStripePrice(price, hideStripeData)) : null, diff --git a/core/server/services/members/middleware.js b/core/server/services/members/middleware.js index 014f3b304d..2a150a3643 100644 --- a/core/server/services/members/middleware.js +++ b/core/server/services/members/middleware.js @@ -109,6 +109,7 @@ const getPortalProductPrices = async function () { monthlyPrice: product.monthlyPrice, yearlyPrice: product.yearlyPrice, benefits: product.benefits, + type: product.type, prices: productPrices }; });