fix: send label list not object in event data presenter (#5853)
This commit is contained in:
@@ -149,7 +149,7 @@ describe ActionCableListener do
|
||||
end
|
||||
|
||||
it 'broadcast event with label data' do
|
||||
expect(conversation.reload.push_event_data[:labels]).to eq(conversation.labels.pluck(:id, :name))
|
||||
expect(conversation.reload.push_event_data[:labels]).to eq(conversation.labels.pluck(:name))
|
||||
|
||||
expect(ActionCableBroadcastJob).to receive(:perform_later).with(
|
||||
[agent.pubsub_token, admin.pubsub_token, conversation.contact_inbox.pubsub_token],
|
||||
|
||||
Reference in New Issue
Block a user