mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
use sidekiq
This commit is contained in:
1 parent
9539c476c0
commit
3034c00bb3
41 files changed
+332
-132
No files matched your search
@@ -61,7 +61,7 @@ class TemplatesController < ApplicationController
|
||||
if @template.save
|
||||
Templates::CloneAttachments.call(template: @template, original_template: @base_template) if @base_template
|
||||
|
||||
SendTemplateUpdatedWebhookRequestJob.perform_later('template_id' => @template.id)
|
||||
SendTemplateUpdatedWebhookRequestJob.perform_async('template_id' => @template.id)
|
||||
|
||||
maybe_redirect_to_template(@template)
|
||||
else
|
||||
@@ -72,7 +72,7 @@ class TemplatesController < ApplicationController
|
||||
def update
|
||||
@template.update!(template_params)
|
||||
|
||||
SendTemplateUpdatedWebhookRequestJob.perform_later('template_id' => @template.id)
|
||||
SendTemplateUpdatedWebhookRequestJob.perform_async('template_id' => @template.id)
|
||||
|
||||
head :ok
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user