🐛 Fixed incorrect fetch of empty stripe subscriptions (#116)

no issue

refs e19e06f9b3

While refactoring user CRUD for Ghost core, we inadvertently changed the members subscriptions object returned by nesting the value as object. This also broke the deserialization in Ghost-Admin for members subscription object [here](https://github.com/TryGhost/Ghost-Admin/blob/master/app/transforms/member-subscription.js#L9).
This commit is contained in:
Rishabh Garg 2020-01-20 13:28:59 +05:30 committed by GitHub
parent 1dc0b36b56
commit a1ad80f6ac

View File

@ -63,7 +63,7 @@ module.exports = function ({
async function getStripeSubscriptions(member) {
if (!stripe) {
return {subscriptions: []};
return [];
}
return await stripe.getActiveSubscriptions(member);