mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FEATURE: phase 1 of supporting multiple email addresses
This commit is contained in:

committed by
Guo Xiang Tan

parent
739794f0cb
commit
d0b027d88d
@ -18,7 +18,7 @@ module ImportExport
|
||||
|
||||
def import_users
|
||||
@export_data[:users].each do |u|
|
||||
existing = User.where(email: u[:email]).first
|
||||
existing = User.with_email(email: u[:email]).first
|
||||
if existing
|
||||
if existing.custom_fields["import_id"] != u[:id]
|
||||
existing.custom_fields["import_id"] = u[:id]
|
||||
|
Reference in New Issue
Block a user