feat: bulk actions to update conversation objects (#3934)

Added the endpoints for bulk updating conversation objects

Fixes: #3845 #3940 #3943
This commit is contained in:
Tejaswini Chile
2022-02-23 16:53:36 +05:30
committed by GitHub
parent 9059f5906a
commit 1ca1b4d36b
6 changed files with 295 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ describe ::Contacts::FilterService do
expected_count = Contact.where("created_at < ? AND custom_attributes->>'customer_type' = ?", Date.tomorrow, 'platinum').count
expect(result[:contacts].length).to be expected_count
expect(result[:contacts].first.id).to eq(el_contact.id)
expect(result[:contacts].pluck(:id)).to include(el_contact.id)
end
context 'with x_days_before filter' do