Fix Rails/WhereExists
cop in app/models (#28863)
This commit is contained in:
parent
599bc69503
commit
9d413cbaf8
4 changed files with 3 additions and 6 deletions
|
@ -263,7 +263,7 @@ class Status < ApplicationRecord
|
|||
end
|
||||
|
||||
def reported?
|
||||
@reported ||= Report.where(target_account: account).unresolved.where('? = ANY(status_ids)', id).exists?
|
||||
@reported ||= Report.where(target_account: account).unresolved.exists?(['? = ANY(status_ids)', id])
|
||||
end
|
||||
|
||||
def emojis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue