FIX: with_email method won't support hash param (#5236)
This commit is contained in:
parent
c53f41f4f2
commit
f176d114f2
|
@ -18,7 +18,7 @@ module ImportExport
|
|||
|
||||
def import_users
|
||||
@export_data[:users].each do |u|
|
||||
existing = User.with_email(email: u[:email]).first
|
||||
existing = User.with_email(u[:email]).first
|
||||
if existing
|
||||
if existing.custom_fields["import_id"] != u[:id]
|
||||
existing.custom_fields["import_id"] = u[:id]
|
||||
|
|
Loading…
Reference in New Issue