remove duplicates on the server instead

Conflicts:
	lib/app/index.js
This commit is contained in:
Tyler Renelle
2012-10-18 00:05:45 -04:00
parent c76fe1424e
commit d5cc627c74
4 changed files with 7 additions and 8 deletions

View File

@@ -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');