Browse Source

Get rid of Chewy order/limit warning (#8355)

Eugen Rochko 9 months ago
parent
commit
28de046b8b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/chewy/statuses_index.rb

+ 1
- 1
app/chewy/statuses_index.rb View File

@@ -31,7 +31,7 @@ class StatusesIndex < Chewy::Index
31 31
     },
32 32
   }
33 33
 
34
-  define_type ::Status.without_reblogs do
34
+  define_type ::Status.unscoped.without_reblogs do
35 35
     crutch :mentions do |collection|
36 36
       data = ::Mention.where(status_id: collection.map(&:id)).pluck(:status_id, :account_id)
37 37
       data.each.with_object({}) { |(id, name), result| (result[id] ||= []).push(name) }

Loading…
Cancel
Save