mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
fix
This commit is contained in:
parent
62b171ffa5
commit
57fb7ca6f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue