Reverse the order of RSS feeds to the newest is sent last

This commit is contained in:
Logan Cusano
2023-04-01 21:08:47 -04:00
parent b7147695ac
commit 64bee8c561

View File

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