Add missing conversation id for first response event (#2922)

- Add missing conversation id for first response event
- Fixing the flaky test

Fixes #2746

Co-authored-by: Tejaswini <tejaswini@chatwoot.com>
This commit is contained in:
Aswin Dev P.S
2021-09-02 00:16:09 +05:30
committed by GitHub
parent 8b841596a5
commit 2ddd508aee
2 changed files with 3 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ describe ::V2::ReportBuilder do
end
it 'returns average first response time' do
FactoryBot.create(:event, conversation: label_2.conversations.last, account: account, name: 'first_response')
label_2.events.update(value: 1.5)
params = {
metric: 'avg_first_response_time',