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-03-10 12:33:18 -07:00
committed by GitHub
parent 8d9dd99012
commit 79218be5c4

View File

@@ -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