mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix template archived send event
This commit is contained in:
1 parent
dc1c386d7e
commit
8ac03a9f8a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user