Merge pull request #1214 from JuanVqz/fix-comment-failing-test
Fix comment failing test
This commit is contained in:
commit
169c7ea80e
|
@ -597,8 +597,8 @@ class Comment < ApplicationRecord
|
|||
|
||||
thread_ids = Comment
|
||||
.where(user: user)
|
||||
.group(:thread_id)
|
||||
.order("id desc")
|
||||
.distinct(:thread_id)
|
||||
.order(thread_id: :desc)
|
||||
.limit(20)
|
||||
.pluck(:thread_id)
|
||||
return Comment.none if thread_ids.empty?
|
||||
|
|
Loading…
Reference in New Issue