mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Merge remote-tracking branch 'upstream/develop' into fix-antidotes-from-revert
This commit is contained in:
@@ -6,6 +6,7 @@ import { model as User } from '../models/user';
|
||||
import common from '../../common';
|
||||
import { preenUserHistory } from './preening';
|
||||
import sleep from './sleep';
|
||||
import { revealMysteryItems } from './payments/subscriptions';
|
||||
|
||||
const CRON_SAFE_MODE = nconf.get('CRON_SAFE_MODE') === 'true';
|
||||
const CRON_SEMI_SAFE_MODE = nconf.get('CRON_SEMI_SAFE_MODE') === 'true';
|
||||
@@ -75,6 +76,9 @@ function grantEndOfTheMonthPerks (user, now) {
|
||||
count: 0, offset: 0, trinkets: 0, gemCapExtra: 0,
|
||||
});
|
||||
|
||||
// Award mystery items
|
||||
revealMysteryItems(user, elapsedMonths);
|
||||
|
||||
// 1 for one-month recurring or gift subscriptions; later set to 3 for 3-month recurring, etc.
|
||||
let planMonthsLength = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user