Compare commits

..

No commits in common. "53f47468684598e12845fbc66bee376ebd153f2d" and "159ebb42832c9a5e68ca1a64c2e387a56804bd08" have entirely different histories.

2 changed files with 7 additions and 12 deletions

View File

@ -1280,20 +1280,15 @@ class MongoClientInterface {
} }, } },
]; ];
const facetOp = {
count: aggCount,
data: aggData,
repData: aggRepData,
};
if (isTransient) {
facetOp.compData = aggCompleted;
}
return c.aggregate([ return c.aggregate([
{ $project: reducedFields }, { $project: reducedFields },
{ $match: filter }, { $match: filter },
{ $facet: facetOp }, { $facet: {
count: aggCount,
data: aggData,
repData: aggRepData,
compData: isTransient ? aggCompleted : undefined,
} },
]).toArray((err, res) => { ]).toArray((err, res) => {
if (err) { if (err) {
log.error('Error when processing mongo entries', { log.error('Error when processing mongo entries', {

View File

@ -3,7 +3,7 @@
"engines": { "engines": {
"node": ">=6.9.5" "node": ">=6.9.5"
}, },
"version": "8.0.7", "version": "8.0.0",
"description": "Common utilities for the S3 project components", "description": "Common utilities for the S3 project components",
"main": "index.js", "main": "index.js",
"repository": { "repository": {