mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove duplicates on the server instead
Conflicts: lib/app/index.js
This commit is contained in:
@@ -252,9 +252,6 @@ score = function(taskId, direction, options) {
|
||||
|
||||
cron = function() {
|
||||
var daysPassed, hpTally, lastCron, tallyTask, tasks, today, todoTally;
|
||||
_.each(['habitIds', 'dailyIds', 'todoIds', 'rewardIds'], function(path) {
|
||||
return user.set(path, _.uniq(user.get(path)));
|
||||
});
|
||||
today = new Date();
|
||||
user.setNull('lastCron', today);
|
||||
lastCron = user.get('lastCron');
|
||||
|
||||
Reference in New Issue
Block a user