mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Added subscription price data for logged-in member
no refs - adds `price` data on subscription from related `stripe_price` on updating a member via frontend - removes inconsistency between `GET` and `PUT` data for logged in member on a site
This commit is contained in:
parent
df5290089b
commit
86fbb14033
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ const updateMemberData = async function (req, res) {
|
|||
if (member) {
|
||||
const options = {
|
||||
id: member.id,
|
||||
withRelated: ['stripeSubscriptions', 'stripeSubscriptions.customer']
|
||||
withRelated: ['stripeSubscriptions', 'stripeSubscriptions.customer', 'stripeSubscriptions.stripePrice']
|
||||
};
|
||||
const updatedMember = await membersService.api.members.update(data, options);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue