2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

users.map should be results.map in xenforo import

This commit is contained in:
Tai Coromandel 2016-02-01 02:45:51 +13:00
parent f281f6e026
commit ab17277353

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, resutls.map {|u| u["id"].to_i}
create_users(results, total: total_count, offset: offset) do |user|
next if user['username'].blank?