lib/eco/api/usecases/default_cases/create_case.rb in eco-helpers-2.5.2 vs lib/eco/api/usecases/default_cases/create_case.rb in eco-helpers-2.5.3

- old
+ new

@@ -1,14 +1,10 @@ class Eco::API::UseCases::DefaultCases::CreateCase < Eco::API::Common::Loaders::UseCase name "create" type :sync - attr_reader :options - def main(entries, people, session, options, usecase) - @options = options - micro = session.micro creation = session.new_job("main", "create", :create, usecase) supers = session.new_job("post", "supers", :update, usecase, :core) micro.with_each_starter(entries, people, options, log_present: true, append_created: append_created) do |entry, person| creation.add(person) @@ -21,7 +17,6 @@ private def append_created options.dig(:people, :append_created) end - end