Commit f15466bd authored by James Lopez's avatar James Lopez
Browse files

refactor code based on feedback

parent e47403c09263
......@@ -16,7 +16,7 @@ def edit
def update
if service.update_attributes(service_params[:service])
PropagateServiceTemplateWorker.perform_async(service.id) if service.active?
PropagateServiceTemplateWorker.perform_async(service.id) if service.active?
redirect_to admin_application_settings_services_path,
notice: 'Application settings saved successfully'
......
......@@ -11,7 +11,7 @@ def initialize(template)
end
def propagate
return unless @template&.active
return unless @template&.active?
Rails.logger.info("Propagating services for template #{@template.id}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment