From f023ff0bc1717b25f53357c1bd0bb7ab32682a47 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Mon, 8 May 2017 16:38:29 +0100 Subject: [PATCH] don't check the dns on create if there already is a status --- app/models/track_domain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/track_domain.rb b/app/models/track_domain.rb index 88562bc..793b11a 100644 --- a/app/models/track_domain.rb +++ b/app/models/track_domain.rb @@ -33,7 +33,7 @@ class TrackDomain < ApplicationRecord scope :ok, -> { where(:dns_status => 'OK')} - after_create :check_dns + after_create :check_dns, :unless => :dns_status after_create :create_ssl_certificate_if_missing after_destroy :delete_ssl_certificate_when_not_in_use