Skip to content

Commit

Permalink
debug: fixing heatmap bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Aug 8, 2024
1 parent 9fd1995 commit 41a2be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/heatmap.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function getHeatmapChart(platformConnection: Connection, body: IHeatmapCha
lone_messages: 1,
thr_messages: 1,
replier: 1,
channelId: 1,
channel_id: 1,
},
},

Expand All @@ -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, []] } }],
},
],
},
Expand Down

0 comments on commit 41a2be6

Please sign in to comment.