Do not use bang version of methods

This commit is contained in:
Artur Beljajev 2018-06-20 15:13:31 +03:00
parent eddf39ea9b
commit d84d7cf772

View file

@ -10,7 +10,8 @@ module Concerns::Domain::Deletable
end
def do_not_delete_later
QueJob.find_by!("args->>0 = '#{id}'", job_class: DomainDeleteJob.name).destroy!
# Que job can be manually deleted in admin area UI
QueJob.find_by("args->>0 = '#{id}'", job_class: DomainDeleteJob.name)&.destroy
end
def deletion_time_span