mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
Update cron.js
This commit is contained in:
parent
edc3c58876
commit
3c7ecef6a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue