Merge pull request #3990 from DukeofRealms/master

FIX: users.map should be results.map in xenforo import
This commit is contained in:
Guo Xiang Tan 2016-02-04 11:19:57 +08:00
commit 04ba3eb053
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class ImportScripts::XenForo < ImportScripts::Base
break if results.size < 1
next if all_records_exist? :users, users.map {|u| u["id"].to_i}
next if all_records_exist? :users, results.map {|u| u["id"].to_i}
create_users(results, total: total_count, offset: offset) do |user|
next if user['username'].blank?