From 3c7ecef6a8536834801bbd897f6529df44e6a388 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 18 Apr 2024 18:17:16 +0200 Subject: [PATCH] Update cron.js --- website/server/libs/cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/libs/cron.js b/website/server/libs/cron.js index af1540a73d..6ee8930b3f 100644 --- a/website/server/libs/cron.js +++ b/website/server/libs/cron.js @@ -112,7 +112,7 @@ async function grantEndOfTheMonthPerks (user, now) { // (subtract 1 because we should have run this when the payment was taken last month) plan.consecutive.offset = planMonthsLength - 1; } - if (!plan.gift) { + if (!plan.gift && plan.customerId.indexOf('Gift') === -1) { // Don't process gifted subs here, since they already got their perks. // eslint-disable-next-line no-await-in-loop