lib/eco/api/usecases/default/people/amend/restore_db_case.rb in eco-helpers-3.0.4 vs lib/eco/api/usecases/default/people/amend/restore_db_case.rb in eco-helpers-3.0.5

- old
+ new

@@ -2,10 +2,12 @@ # -restore-db-from backup.json -skip-api-policies -skip-batch-policy -include-excluded -simulate class Eco::API::UseCases::Default::People::Amend::RestoreDBCase < Eco::API::Common::Loaders::UseCase name "restore-db" type :sync + require_relative 'cli/restore_db_cli' + def main(entries, people, session, options, usecase) # rubocop:disable Metrics/AbcSize require_people_as_entries!(entries) restart = session.new_job("main", "restart", :create, usecase) if options.dig(:include, :create) update = session.new_job("main", "update", :update, usecase) @@ -50,9 +52,10 @@ person.freemium = entry.freemium end def account_copy(src, dst) # rubocop:disable Metrics/AbcSize return unless src + dst.default_tag = src.default_tag unless options.dig(:exclude, :filter_tags) dst.policy_group_ids = src.policy_group_ids unless options.dig(:exclude, :policy_groups) dst.permissions_custom = src.permissions_custom unless options.dig(:exclude, :abilities) unless options.dig(:exclude, :login_providers) || options[:source_enviro]