From 086c9101972a719ec4651feb8d2ea565f253e57e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Feb 2023 16:32:35 -0500 Subject: [PATCH] RSS controller will update feeds before starting engine --- controllers/rssController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/rssController.js b/controllers/rssController.js index 584010a..5f97b90 100644 --- a/controllers/rssController.js +++ b/controllers/rssController.js @@ -15,6 +15,7 @@ exports.RSSController = class RSSController { async start(){ log.INFO("Starting RSS Controller"); + await libCore.updateFeeds(this.client); while(true){ await new Promise(resolve => setTimeout(resolve, timeoutValue)); this.collectLatestPosts(); @@ -24,5 +25,6 @@ exports.RSSController = class RSSController { async collectLatestPosts(){ log.INFO("Updating sources"); libCore.updateFeeds(this.client) + return; } } \ No newline at end of file