RSS controller will update feeds before starting engine

This commit is contained in:
Logan Cusano
2023-02-26 16:32:35 -05:00
parent c83e87e3f3
commit 086c910197

View File

@@ -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;
}
}