mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Fix the build.
This commit is contained in:
parent
52b9af10a1
commit
9e8d10f711
@ -135,7 +135,7 @@ class User < ActiveRecord::Base
|
||||
attr_accessor :import_mode
|
||||
|
||||
scope :with_email, ->(email) do
|
||||
joins(:user_emails).where("lower(user_emails.email) = ?", email)
|
||||
joins(:user_emails).where("lower(user_emails.email) IN (?)", email)
|
||||
end
|
||||
|
||||
scope :human_users, -> { where('users.id > 0') }
|
||||
|
Loading…
Reference in New Issue
Block a user