提交 f15466bd 编写于 作者: J James Lopez

refactor code based on feedback

上级 6ecf16b8
......@@ -16,7 +16,7 @@ class Admin::ServicesController < Admin::ApplicationController
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 @@ module Projects
end
def propagate
return unless @template&.active
return unless @template&.active?
Rails.logger.info("Propagating services for template #{@template.id}")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册