Skip to content

Commit

Permalink
Merge pull request #373 from TogetherCrew/fix-platform-agnostic
Browse files Browse the repository at this point in the history
debug: fixing heatmap bugs
  • Loading branch information
Behzad-rabiei authored Aug 8, 2024
2 parents ba5ee9c + 41a2be6 commit 417733c
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 417733c

Please sign in to comment.