mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Skip batches if all records exist
Update all import scripts to take advantage of all_records_exist?
This commit is contained in:
@@ -9,6 +9,10 @@ module ImportScripts::PhpBB3
|
||||
@settings = settings
|
||||
end
|
||||
|
||||
def map_to_import_ids(array)
|
||||
array.map {|u| u[:user_id]}
|
||||
end
|
||||
|
||||
def map_user(row)
|
||||
is_active_user = row[:user_inactive_reason] != Constants::INACTIVE_REGISTER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user