module Eco module API module UseCases class DefaultCases class ReinviteCase < BaseCase def process @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 end end end end end end end