Fix purging dead threads from DataBoards.
This commit is contained in:
parent
1e34674fdf
commit
cc27e36d98
@ -57,7 +57,7 @@ class DataBoard
|
||||
@deleteIfEmpty {boardID}
|
||||
|
||||
now = Date.now()
|
||||
if @data.lastChecked < now - 12 * $.HOUR
|
||||
if (@data.lastChecked or 0) < now - 12 * $.HOUR
|
||||
@data.lastChecked = now
|
||||
for boardID of @data.boards
|
||||
@ajaxClean boardID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user