diff --git a/app/models/integrations/hook.rb b/app/models/integrations/hook.rb index 61a19874c..2046d09da 100644 --- a/app/models/integrations/hook.rb +++ b/app/models/integrations/hook.rb @@ -64,7 +64,7 @@ class Integrations::Hook < ApplicationRecord private def ensure_hook_type - self.hook_type = app.params[:hook_type] if app.present? + self.hook_type ||= app.params[:hook_type] if app.present? end def validate_settings_json_schema