Sha256: 802073702bbc346d783da5d567c04b5f86964783aae3a1cbbc5c658ebf7077de
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
class Eco::API::UseCases::DefaultCases::ReinviteTransCase < Eco::API::Common::Loaders::UseCase name "reinvite" type :transform def main(people, session, options, usecase) 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.send_invites = true else person.account.force_send_invites = true end invite.add(person) end end def force_invite? options.dig(:force, :invite) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eco-helpers-2.5.4 | lib/eco/api/usecases/default_cases/reinvite_trans_case.rb |
eco-helpers-2.5.3 | lib/eco/api/usecases/default_cases/reinvite_trans_case.rb |