0
Fork 0
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:
Rishabh 2021-07-01 23:29:59 +05:30
parent df5290089b
commit 86fbb14033

View file

@ -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);