From 57fb7ca6f2c21f77be9e18466b022618d9f70cf1 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Fri, 24 Feb 2023 11:25:53 +0100 Subject: [PATCH] fix --- website/server/libs/payments/subscriptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/libs/payments/subscriptions.js b/website/server/libs/payments/subscriptions.js index 98d8ae5187..eb73d44b4d 100644 --- a/website/server/libs/payments/subscriptions.js +++ b/website/server/libs/payments/subscriptions.js @@ -257,7 +257,7 @@ async function createSubscription (data) { if (!data.gift && !groupId) { plan.consecutive.offset = block.months; } - if (months > 1) { + if (months > 1 || data.gift) { await plan.incrementPerkCounterAndReward(recipient._id, months); } }