diff --git a/src/config.json b/src/config.json index 5a91952e4e2a4e9969febe813828dd0a62f4cef9..21cb0d752aafe7bc716f4e4810ecd15d94f88288 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 ebaa86047277e483998b0eae56bd9f48b69df731..961d52715774c24e47f0e6eb0ea9a58a40650d8c 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 {