From 41a2be6511123c9fd34cc28cdb58e9835cd4a136 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:46:51 +0400 Subject: [PATCH] debug: fixing heatmap bugs --- src/services/heatmap.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/heatmap.service.ts b/src/services/heatmap.service.ts index b8e4986..db6efcd 100644 --- a/src/services/heatmap.service.ts +++ b/src/services/heatmap.service.ts @@ -23,7 +23,7 @@ async function getHeatmapChart(platformConnection: Connection, body: IHeatmapCha lone_messages: 1, thr_messages: 1, replier: 1, - channelId: 1, + channel_id: 1, }, }, @@ -34,7 +34,7 @@ async function getHeatmapChart(platformConnection: Connection, body: IHeatmapCha { date: { $gte: new Date(startDate) } }, { date: { $lte: new Date(endDate) } }, { - $or: [{ channelId: { $in: channelIds } }, { $expr: { $eq: [channelIds, []] } }], + $or: [{ channel_id: { $in: channelIds } }, { $expr: { $eq: [channelIds, []] } }], }, ], },