2018-06-27 07:23:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-02-06 13:25:46 +00:00
|
|
|
class PagesDomainVerificationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2018-02-06 13:25:46 +00:00
|
|
|
def perform(domain_id)
|
|
|
|
domain = PagesDomain.find_by(id: domain_id)
|
|
|
|
|
|
|
|
return unless domain
|
|
|
|
|
|
|
|
VerifyPagesDomainService.new(domain).execute
|
|
|
|
end
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2018-02-06 13:25:46 +00:00
|
|
|
end
|