Removed archived Tiers from theme data (#14049)

refs https://github.com/TryGhost/Team/issues/1252

In order to allow existing subscribe pages to continue working without
an extra flag, we're going to filter out the archived tiers.
This commit is contained in:
Fabien 'egg' O'Carroll 2022-01-24 12:47:24 +02:00 committed by GitHub
parent 034f7d9a55
commit db4da54265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,8 @@ async function getProductAndPricesData() {
try {
const page = await api.canary.productsPublic.browse({
include: ['monthly_price', 'yearly_price'],
limit: 'all'
limit: 'all',
filter: 'active:true'
});
return page.products;