This commit is contained in:
Phillip Thelen 2023-02-24 11:25:53 +01:00
parent 62b171ffa5
commit 57fb7ca6f2

View file

@ -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);
}
}