feat: use short_summary for downloading reports [CW-2962] (#8733)
This commit is contained in:
@@ -46,6 +46,14 @@ class V2::ReportBuilder
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def short_summary
|
||||||
|
{
|
||||||
|
conversations_count: conversations.count,
|
||||||
|
avg_first_response_time: avg_first_response_time_summary,
|
||||||
|
avg_resolution_time: avg_resolution_time_summary
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
def conversation_metrics
|
def conversation_metrics
|
||||||
if params[:type].equal?(:account)
|
if params[:type].equal?(:account)
|
||||||
live_conversations
|
live_conversations
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ module Api::V2::Accounts::ReportsHelper
|
|||||||
business_hours: ActiveModel::Type::Boolean.new.cast(params[:business_hours])
|
business_hours: ActiveModel::Type::Boolean.new.cast(params[:business_hours])
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
).summary
|
).short_summary
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user