Change the order of after create_commit

This commit is contained in:
Pranav
2025-06-27 15:51:30 -07:00
parent eea1ab3002
commit 5eb94fc545
+2 -2
View File
@@ -123,12 +123,12 @@ class Message < ApplicationRecord
belongs_to :conversation, touch: true
belongs_to :sender, polymorphic: true, optional: true
after_create_commit :execute_after_create_commit_callbacks
has_many :attachments, dependent: :destroy, autosave: true, before_add: :validate_attachments_limit
has_one :csat_survey_response, dependent: :destroy_async
has_many :notifications, as: :primary_actor, dependent: :destroy_async
after_create_commit :execute_after_create_commit_callbacks
after_update_commit :dispatch_update_event
def channel_token