Actually let's try this fix instead.
This commit is contained in:
parent
fb699eac64
commit
fbef2401b3
@ -59,8 +59,10 @@ class DataBoard
|
|||||||
for boardID, val of @data.boards
|
for boardID, val of @data.boards
|
||||||
# XXX tmp fix for users that had the `null`
|
# XXX tmp fix for users that had the `null`
|
||||||
# value for a board with the Unread features:
|
# value for a board with the Unread features:
|
||||||
@data.boards[boardID] or= {}
|
if typeof @data.boards[boardID] isnt 'object'
|
||||||
@deleteIfEmpty {boardID}
|
delete @data.boards[boardID]
|
||||||
|
else
|
||||||
|
@deleteIfEmpty {boardID}
|
||||||
|
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
if (@data.lastChecked or 0) < now - 2 * $.HOUR
|
if (@data.lastChecked or 0) < now - 2 * $.HOUR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user