Files
ubicloud/prog/expire_project_invitations.rb
Jeremy Evans e6b7e5e879 Change rubocop TargetRubyVersion to 3.4
Disable Style/RedundantLineContinuation, as it incorrectly removes
line continutations in rhizome/host/lib/vm_setup.rb that are not
redundant.

All code changes are for _1 => it in blocks.
2025-04-26 06:51:19 +09:00

10 lines
206 B
Ruby

# frozen_string_literal: true
class Prog::ExpireProjectInvitations < Prog::Base
label def wait
ProjectInvitation.where { it.expires_at < Time.now }.all.each(&:destroy)
nap 6 * 60 * 60
end
end