0
Fork 0
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:
Fabien O'Carroll 2020-12-10 12:56:46 +00:00 committed by Fabien 'egg' O'Carroll
parent c856d712ec
commit 939a54cc35

View file

@ -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) {