Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Add v3.31.4
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickRe committed Sep 2, 2020
1 parent b924fae commit f7c9a93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/server/models/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ const Member = ghostBookshelf.Model.extend({
this.on(
'members_stripe_customers.customer_id',
'members_stripe_customers_subscriptions.customer_id'
).andOn(
).onIn(
'members_stripe_customers_subscriptions.status',
ghostBookshelf.knex.raw('?', ['active'])
['active', 'trialed']
);
}
);
Expand Down
3 changes: 2 additions & 1 deletion core/server/services/mega/mega.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ async function handleUnsubscribeRequest(req) {
}

try {
return await membersService.api.members.update({subscribed: false}, {id: member.id});
const memberModel = await membersService.api.members.update({subscribed: false}, {id: member.id});
return memberModel.toJSON();
} catch (err) {
throw new errors.InternalServerError({
message: 'Failed to unsubscribe member'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghost",
"version": "3.31.3",
"version": "3.31.4",
"description": "The professional publishing platform",
"author": "Ghost Foundation",
"homepage": "https://ghost.org",
Expand Down

0 comments on commit f7c9a93

Please sign in to comment.