From cb803f2aab22d739b79e299f72b5bf463ff3a8b3 Mon Sep 17 00:00:00 2001 From: Jie Kang Date: Tue, 19 Mar 2024 20:24:29 -0400 Subject: [PATCH] Return original _id in getTotals request (#851) --- TestResultSummaryService/Database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestResultSummaryService/Database.js b/TestResultSummaryService/Database.js index 92aa3eb7..5267ec6d 100644 --- a/TestResultSummaryService/Database.js +++ b/TestResultSummaryService/Database.js @@ -176,7 +176,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' },