From 53fcc787e0478ed43dbaf6fde196a677a0b31860 Mon Sep 17 00:00:00 2001 From: Jie Kang Date: Tue, 19 Mar 2024 10:43:48 -0400 Subject: [PATCH] Return original _id in getTotals request --- TestResultSummaryService/Database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestResultSummaryService/Database.js b/TestResultSummaryService/Database.js index efb2cc6f..120c4e6a 100644 --- a/TestResultSummaryService/Database.js +++ b/TestResultSummaryService/Database.js @@ -159,7 +159,7 @@ class Database { { $match: { 'childBuilds.buildName': { $regex: buildNameRegex } } }, { $group: { - _id: {}, + _id: id , total: { $sum: '$childBuilds.testSummary.total' }, executed: { $sum: '$childBuilds.testSummary.executed' }, passed: { $sum: '$childBuilds.testSummary.passed' },