mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-06 02:35:11 +02:00
Small delay before sync dates at creation
This commit is contained in:
parent
ff9d440b2c
commit
3de56c09cc
|
@ -100,8 +100,10 @@ class Check < ApplicationRecord
|
|||
return unless active?
|
||||
return unless saved_changes.key?("domain")
|
||||
|
||||
WhoisSyncJob.perform_later(id) if domain?
|
||||
SSLSyncJob.perform_later(id) if ssl?
|
||||
# small delay before first sync, otherwise on fast system
|
||||
# the db won't return the check immediately after insert
|
||||
WhoisSyncJob.perform_later(id, delay: 1.second) if domain?
|
||||
SSLSyncJob.perform_later(id, delay: 1.second) if ssl?
|
||||
end
|
||||
|
||||
def reset_notifications
|
||||
|
|
Loading…
Reference in a new issue