From bcd72cb1cc846a8225b336c03ec123bce0e66f5b Mon Sep 17 00:00:00 2001 From: Paul McCafferty <> Date: Thu, 15 Apr 2021 18:16:28 +0100 Subject: [PATCH] Only bringing back the data that is needed for data access requests --- src/resources/stats/stats.router.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resources/stats/stats.router.js b/src/resources/stats/stats.router.js index 75d4161c..2992105e 100644 --- a/src/resources/stats/stats.router.js +++ b/src/resources/stats/stats.router.js @@ -113,6 +113,7 @@ router.get('', async (req, res) => { ], }, }, + { $project: { datasetIds: 1 } }, ]; var y = DataRequestModel.aggregate(aggregateAccessRequests);