mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
parent
e34ef78c4d
commit
fd383a9c18
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ module Concerns::Domain::Deletable
|
|||
end
|
||||
|
||||
def deletion_time_span
|
||||
# 5 minutes to ensure we don't create a background job with past `run_at`
|
||||
((Time.zone.now + 5.minutes).to_i)..(deletion_deadline.to_i)
|
||||
Time.zone.now.to_i..deletion_deadline.to_i
|
||||
end
|
||||
|
||||
def deletion_deadline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue