fix template archived send event

This commit is contained in:
Pete Matsyburka
2026-06-25 10:04:54 +03:00
parent dc1c386d7e
commit 8ac03a9f8a
+1 -1
View File
@@ -57,7 +57,7 @@ module Api
SearchEntries.enqueue_reindex(@template)
WebhookUrls.enqueue_events(@template, 'template.updated')
WebhookUrls.enqueue_events(@template, 'template.archived') if archived == true
WebhookUrls.enqueue_events(@template, 'template.archived') if @template.saved_change_to_archived_at? && @template.archived_at?
render json: @template.as_json(only: %i[id updated_at])
end