mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
🐛 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:
parent
1dc0b36b56
commit
a1ad80f6ac
@ -63,7 +63,7 @@ module.exports = function ({
|
||||
|
||||
async function getStripeSubscriptions(member) {
|
||||
if (!stripe) {
|
||||
return {subscriptions: []};
|
||||
return [];
|
||||
}
|
||||
|
||||
return await stripe.getActiveSubscriptions(member);
|
||||
|
Loading…
Reference in New Issue
Block a user