0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added products as default relation when fetching members

no-issue

As subscriptions are a default relation, and we now require products to
populate subscriptions for comped members, we need to include products
by default when reading members.
This commit is contained in:
Fabien O'Carroll 2021-08-26 16:10:11 +02:00
parent 0f4e97eae7
commit ec8dbf2890

View file

@ -15,7 +15,8 @@ module.exports = class MemberBREADService {
'stripeSubscriptions',
'stripeSubscriptions.customer',
'stripeSubscriptions.stripePrice',
'stripeSubscriptions.stripePrice.stripeProduct'
'stripeSubscriptions.stripePrice.stripeProduct',
'products'
];
const withRelated = new Set((options.withRelated || []).concat(defaultWithRelated));