FIX: invert from and to user id in smf1 import script

This commit is contained in:
Arpit Jalan 2018-06-28 12:30:28 +05:30
parent ebd2be9e02
commit c73f98c289
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ class ImportScripts::Smf1 < ImportScripts::Base
SQL
).each do |f|
print_status(count += 1, total, get_start_time("feedbacks"))
next unless user_id_from = user_id_from_imported_user_id(f["id_member"])
next unless user_id_to = user_id_from_imported_user_id(f["feedbackmember_id"])
next unless user_id_from = user_id_from_imported_user_id(f["feedbackmember_id"])
next unless user_id_to = user_id_from_imported_user_id(f["id_member"])
next unless user = User.find_by(id: user_id_to)
feedbacks = user.custom_fields[FEEDBACKS] || []