Skip to content

Commit

Permalink
feat: add late count in service type facet
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMaruchu committed Aug 19, 2019
1 parent bda0666 commit a6af40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export const SERVICE_TYPE_FACET = {
pending: { $sum: '$pending' },
resolved: { $sum: '$resolved' },
unattended: { $sum: '$unattended' },
late: { $sum: '$late' },
averageResolveTime: { $avg: '$ttr.milliseconds' },
averageAttendTime: { $avg: '$call.duration.milliseconds' },
},
Expand All @@ -230,6 +231,7 @@ export const SERVICE_TYPE_FACET = {
pending: 1,
resolved: 1,
unattended: 1,
late: 1,
averageAttendTime: 1,
averageResolveTime: 1,
},
Expand Down

0 comments on commit a6af40f

Please sign in to comment.