From 42eec2372f179ca645a1bd1fbf52382aec238e8c Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 17 Feb 2019 13:13:44 +0100 Subject: [PATCH] Do not return play/item/buy for budget object on basic GET logs endpoint (CC-15) --- server/routes/logs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/logs.js b/server/routes/logs.js index 16ffc1b..a1eed34 100644 --- a/server/routes/logs.js +++ b/server/routes/logs.js @@ -43,7 +43,7 @@ logsRouter.route('/:warId') const sort = {sort: {time: 1}}; const pointsObjects = LogPointsModel.find(filter, {}, sort); - const budgetObjects = LogBudgetModel.find(filter, {}, sort); + const budgetObjects = LogBudgetModel.find(filter, {player:0, item:0, buy:0}, sort); const respawnObjects = LogRespawnModel.find(filter, {}, sort); const reviveObjects = LogReviveModel.find(filter, {}, sort); const killObjects = LogKillModel.find(filter, {}, sort);