Merge remote-tracking branch 'parent/main' into upstream-20250328
This commit is contained in:
commit
12ed20b6d5
257 changed files with 3505 additions and 2010 deletions
|
@ -8,7 +8,7 @@ class PollExpirationNotifyWorker
|
|||
def perform(poll_id)
|
||||
@poll = Poll.find(poll_id)
|
||||
|
||||
return if does_not_expire?
|
||||
return if missing_expiration?
|
||||
requeue! && return if not_due_yet?
|
||||
|
||||
notify_remote_voters_and_owner! if @poll.local?
|
||||
|
@ -24,7 +24,7 @@ class PollExpirationNotifyWorker
|
|||
|
||||
private
|
||||
|
||||
def does_not_expire?
|
||||
def missing_expiration?
|
||||
@poll.expires_at.nil?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue