mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module.exports = function ({
|
|||
|
||||
async function getStripeSubscriptions(member) {
|
||||
if (!stripe) {
|
||||
return {subscriptions: []};
|
||||
return [];
|
||||
}
|
||||
|
||||
return await stripe.getActiveSubscriptions(member);
|
||||
|
|
Loading…
Add table
Reference in a new issue