mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 08:22:17 +00:00
[#1708] tmp workaround for task not defined
This commit is contained in:
parent
8531fb33b2
commit
a374f67549
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ randomDrop = (user, delta, priority, streak = 0, options={}) ->
|
|||
# {task} task you want to score
|
||||
# {direction} 'up' or 'down'
|
||||
obj.score = (user, task, direction, options={}) ->
|
||||
return unless task
|
||||
|
||||
# This is for setting one-time temporary flags, such as streakBonus or itemDropped. Useful for notifying
|
||||
# the API consumer, then cleared afterwards
|
||||
|
|
|
|||
Loading…
Reference in a new issue