fix rubocop

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