From ab010ab71c38e939c8a4c7781aca1d06c5f5ade2 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Thu, 22 Jan 2026 20:33:14 -0800 Subject: [PATCH] revert(integrations): keep hook_type assignment behavior --- app/models/integrations/hook.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/integrations/hook.rb b/app/models/integrations/hook.rb index 0e89f7ce4..518b405da 100644 --- a/app/models/integrations/hook.rb +++ b/app/models/integrations/hook.rb @@ -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