lib/eco/api/usecases/default_cases/reinvite_case.rb in eco-helpers-0.8.4 vs lib/eco/api/usecases/default_cases/reinvite_case.rb in eco-helpers-0.9.1
- old
+ new
@@ -3,11 +3,11 @@
module UseCases
class DefaultCases
class ReinviteCase < BaseCase
def process
- @cases.define("reinvite", type: :transform) do |people, session|
- invite = session.job_group("main").new("invite", type: :update, sets: :account)
+ @cases.define("reinvite", type: :transform) do |people, session, options, usecase|
+ invite = session.job_group("main").new("invite", usecase: usecase, type: :update, sets: :account)
people.users.each do |person|
person.account.send_invites = true
invite.add(person)
end
invite