fix(cron): remove now-erroneous function call

This commit is contained in:
Sabe Jones
2021-10-14 15:26:28 -05:00
parent 0480681006
commit 823a35b859
2 changed files with 0 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ async function cronAsync (req, res) {
res.locals.user = user; res.locals.user = user;
const { daysMissed, timezoneUtcOffsetFromUserPrefs } = user.daysUserHasMissed(now, req); const { daysMissed, timezoneUtcOffsetFromUserPrefs } = user.daysUserHasMissed(now, req);
user.enrollInDropCapABTest(req.headers['x-client']);
await updateLastCron(user, now); await updateLastCron(user, now);
if (daysMissed <= 0) { if (daysMissed <= 0) {

View File

@@ -163,8 +163,6 @@ function _setUpNewUser (user) {
user.markModified('items achievements'); user.markModified('items achievements');
user.enrollInDropCapABTest(user.registeredThrough);
if (user.registeredThrough === 'habitica-web') { if (user.registeredThrough === 'habitica-web') {
taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag']; taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];