Sha256: b750ddcddd2dd129f42ea09b30404ff141a6863d0d1b3399ec6c2d93a73e27bc
Contents?: true
Size: 595 Bytes
Versions: 19
Compression:
Stored size: 595 Bytes
Contents
class Eco::API::UseCases::Default::People::Amend::ReinviteTransCase < Eco::API::Common::Loaders::UseCase name "reinvite" type :transform def main(*_args) reinvite(people.users) end private def reinvite(users) invite = session.new_job("main", "invite", :update, usecase, :account) users.each do |person| if force_invite? person.account.force_send_invites = true else person.account.send_invites = true end invite.add(person) end end def force_invite? options.dig(:force, :invite) end end
Version data entries
19 entries across 19 versions & 1 rubygems