Back to what it was. Faster that way. -_-
This commit is contained in:
Родитель
db7235501f
Коммит
8d2caf6dca
|
@ -28,7 +28,7 @@ module ThreadUtils
|
|||
thread_key = t._id.to_s
|
||||
if read_dates.has_key? thread_key
|
||||
is_read = read_dates[thread_key] >= t.updated_at
|
||||
unread_comment_count = Comment.where(
|
||||
unread_comment_count = Comment.collection.find(
|
||||
:comment_thread_id => t._id,
|
||||
:author_id => {"$ne" => user.id},
|
||||
:updated_at => {"$gte" => read_dates[thread_key]},
|
||||
|
|
Загрузка…
Ссылка в новой задаче