mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
🐛 Fixed comped flag for members
no-issue We now include all subscriptions as part of the member, so we need to ensure the comped flag is only true if the member has an **active** complimentary plan
This commit is contained in:
parent
c856d712ec
commit
939a54cc35
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ function serializeMember(member, options) {
|
|||
* @param {SerializedMemberStripeSubscription} sub
|
||||
*/
|
||||
function (sub) {
|
||||
return sub.plan.nickname === 'Complimentary';
|
||||
return sub.plan.nickname === 'Complimentary' && sub.status === 'active';
|
||||
}
|
||||
);
|
||||
if (hasCompedSubscription) {
|
||||
|
|
Loading…
Add table
Reference in a new issue