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