add template update event

pull/555/merge
Pete Matsyburka 2 months ago
parent ed3c7c324b
commit 36d59c40a7

@ -6,6 +6,8 @@ class TemplatesRestoreController < ApplicationController
def create def create
@template.update!(archived_at: nil) @template.update!(archived_at: nil)
WebhookUrls.enqueue_events(@template, 'template.updated')
redirect_to template_path(@template), notice: I18n.t('template_has_been_unarchived') redirect_to template_path(@template), notice: I18n.t('template_has_been_unarchived')
end end
end end

Loading…
Cancel
Save