Merge pull request #1214 from JuanVqz/fix-comment-failing-test

Fix comment failing test
This commit is contained in:
Peter Bhat Harkins 2023-10-12 07:11:46 -05:00 committed by GitHub
commit 169c7ea80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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?