fix: Force account_id to use index on messages query on conversation push_event_data (#13757)

Add a where clause. where(account_id: account_id).
This commit is contained in:
Pranav
2026-04-14 16:36:07 +05:30
committed by aakashb95
parent 67e9779526
commit 7767448095
@@ -24,7 +24,7 @@ class Conversations::EventDataPresenter < SimpleDelegator
private
def push_messages
[messages.chat.last&.push_event_data].compact
[messages.where(account_id: account_id).chat.last&.push_event_data].compact
end
def push_meta