Update cron.js

This commit is contained in:
Phillip Thelen
2024-04-18 18:17:16 +02:00
committed by GitHub
parent edc3c58876
commit 3c7ecef6a8
+1 -1
View File
@@ -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