fix(integrations): avoid readonly hook_type updates

This commit is contained in:
Sojan Jose
2026-01-22 21:56:07 -08:00
parent ab010ab71c
commit 05a5d81ad2
+5 -1
View File
@@ -86,7 +86,11 @@ class Integrations::Hook < ApplicationRecord
end
def ensure_hook_type
self.hook_type = app.params[:hook_type] if app.present?
return unless app.present?
return unless new_record?
# hook_type is readonly; only set it on create to avoid update-time errors in Rails 7.1+
self.hook_type = app.params[:hook_type]
end
def validate_settings_json_schema