revert(integrations): keep hook_type assignment behavior

This commit is contained in:
Sojan Jose
2026-01-22 20:33:14 -08:00
parent 69fabf0efd
commit ab010ab71c
+1 -4
View File
@@ -86,10 +86,7 @@ class Integrations::Hook < ApplicationRecord
end
def ensure_hook_type
return if app.blank?
return unless new_record? || hook_type.blank?
self.hook_type = app.params[:hook_type]
self.hook_type = app.params[:hook_type] if app.present?
end
def validate_settings_json_schema