Feat: Resolve Incidents All and One
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user