Reverse the order of RSS feeds to the newest is sent last
This commit is contained in:
@@ -168,7 +168,7 @@ exports.updateFeeds = (client) => {
|
||||
try {
|
||||
if (parsedFeed?.items){
|
||||
this.unsetRemoveSource(source.link);
|
||||
for (const post of parsedFeed.items){
|
||||
for (const post of parsedFeed.items.reverse()){
|
||||
recordPromiseArray.push(new Promise((recordResolve, recordReject) => {
|
||||
log.DEBUG("Parsed Source Keys", Object.keys(post), post?.title);
|
||||
log.VERBOSE("Post from feed: ", post);
|
||||
|
||||
Reference in New Issue
Block a user