mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added the product name property in member reads
refs https://github.com/TryGhost/Team/issues/1141 - The goal is to retrieve the product name for canceled subscriptions - The property is located at `member.subscriptions.price.product.name` - We can't easily get the full product as products are retrieved using a join through `members_products`, and there is only a `members_products` row when the subscription is active
This commit is contained in:
parent
688a5c9241
commit
a0001df1ad
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ module.exports = class MemberBREADService {
|
|||
'stripeSubscriptions.customer',
|
||||
'stripeSubscriptions.stripePrice',
|
||||
'stripeSubscriptions.stripePrice.stripeProduct',
|
||||
'stripeSubscriptions.stripePrice.stripeProduct.product',
|
||||
'products',
|
||||
'offerRedemptions'
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue