shuttlepro-shared 1.4.17 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,6 +282,7 @@ class CallRepository {
282
282
  // Stats grouped by agent
283
283
  // Stats grouped by agent
284
284
  async getAgentStats({ from, to }, filters = {}) {
285
+ console.log({ from, to }, filters);
285
286
  const result = await Call.aggregate([
286
287
  {
287
288
  $match: {
@@ -316,8 +317,9 @@ class CallRepository {
316
317
  },
317
318
  ]);
318
319
 
320
+ console.log(result, "result");
321
+
319
322
  if (filters.agentId) {
320
- // single agent case
321
323
  return (
322
324
  result.find((r) => r.agentId === filters.agentId) || {
323
325
  agentId: filters.agentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {