remove cron taskObj? workaround since we're cleaning null tasks on load

This commit is contained in:
Tyler Renelle 2013-02-17 14:37:04 -05:00
parent 4bdbbfe764
commit 20ee3ffb62

View file

@ -217,11 +217,6 @@ cron = () ->
# Tally each task
todoTally = 0
_.each obj.tasks, (taskObj) ->
unless taskObj?
#TODO delete the object
console.error "a task had a null id during cron, this should not be happening"
return
{id, type, completed, repeat} = taskObj
if type in ['todo', 'daily']
# Deduct experience for missed Daily tasks,