Sha256: 16a1f0742a84d8fde509e17346794d157d6613e2076042ca0de6d893f1eaceeb
Contents?: true
Size: 614 Bytes
Versions: 6
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.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
6 entries across 6 versions & 1 rubygems