Feat: Resolve Incidents All and One

This commit is contained in:
Br0wnHammer committed 2025-07-03 02:15:37 +05:30
1 parent 731f2e12fb
commit d9ccc72a38
7 files changed
+126 -41

No files matched your search

@@ -10,7 +10,11 @@ const buildChecksSummaryByTeamIdPipeline = ({ matchStage }) => {
totalChecks: { $sum: { $cond: [{ $eq: ["$status", false] }, 1, 0] } },
resolvedChecks: {
$sum: {
$cond: [{ $eq: ["$ack", true] }, 1, 0],
$cond: [
{ $and: [{ $eq: ["$ack", true] }, { $eq: ["$status", false] }] },
1,
0,
],
},
},
downChecks: {