From bb4411f468b4f60f10a9860a5986b8343a02fe1f Mon Sep 17 00:00:00 2001 From: Venkateshwaran Selvaraj <venkateshwarans@ilimi.in> Date: Fri, 11 Sep 2020 14:26:57 +0530 Subject: [PATCH] Issue #DP-1162 fix: project feed api and configuration api --- src/config.json | 2 +- src/service/programFeedService.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.json b/src/config.json index 5a91952..21cb0d7 100644 --- a/src/config.json +++ b/src/config.json @@ -9,7 +9,7 @@ "dataStores": { "redis": { "keyPrefix": "vdn", - "feedExpiry": 3600 + "feedExpiry": 300 } } } diff --git a/src/service/programFeedService.js b/src/service/programFeedService.js index ebaa860..961d527 100644 --- a/src/service/programFeedService.js +++ b/src/service/programFeedService.js @@ -101,7 +101,7 @@ const searchForUpdates = async (req, response) => { const newContributions = await searchContributions(contributionSearchRequest, req.headers); const contents = _.get(newContributions, 'data.result.content'); if(contents) { - const notActedUponContents = getActionPendingContents(content, req.headers); + const notActedUponContents = getActionPendingContents(contents, req.headers); const contentsByProgram = _.groupBy(notActedUponContents, 'programId'); programByContentCount = generateUpdatesMap(contentsByProgram, 'contributionCount'); } else { -- GitLab