remove cron taskObj? workaround since we're cleaning null tasks on load
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user