I'm still getting Object.keys called on non-object from here.

wtf
This commit is contained in:
Mayhem 2013-05-17 22:26:19 +02:00
parent ff65a27034
commit fb699eac64

View File

@ -59,10 +59,8 @@ class DataBoard
for boardID, val of @data.boards
# XXX tmp fix for users that had the `null`
# value for a board with the Unread features:
unless val
delete @data.boards[boardID]
else
@deleteIfEmpty {boardID}
@data.boards[boardID] or= {}
@deleteIfEmpty {boardID}
now = Date.now()
if (@data.lastChecked or 0) < now - 2 * $.HOUR