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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user