mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
correctly set perkMonthCount
This commit is contained in:
parent
3f56b7fa3f
commit
be18476292
1 changed files with 3 additions and 1 deletions
|
|
@ -257,7 +257,9 @@ async function createSubscription (data) {
|
|||
if (!data.gift && !groupId) {
|
||||
plan.consecutive.offset = block.months;
|
||||
}
|
||||
await plan.incrementPerkCounterAndReward(recipient._id, months);
|
||||
if (months > 1) {
|
||||
await plan.incrementPerkCounterAndReward(recipient._id, months);
|
||||
}
|
||||
}
|
||||
|
||||
if (recipient !== group) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue