mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-17 11:18:52 +00:00
remove cron taskObj? workaround since we're cleaning null tasks on load
This commit is contained in:
parent
4bdbbfe764
commit
20ee3ffb62
1 changed files with 0 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue