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 {
|
try {
|
||||||
if (parsedFeed?.items){
|
if (parsedFeed?.items){
|
||||||
this.unsetRemoveSource(source.link);
|
this.unsetRemoveSource(source.link);
|
||||||
for (const post of parsedFeed.items){
|
for (const post of parsedFeed.items.reverse()){
|
||||||
recordPromiseArray.push(new Promise((recordResolve, recordReject) => {
|
recordPromiseArray.push(new Promise((recordResolve, recordReject) => {
|
||||||
log.DEBUG("Parsed Source Keys", Object.keys(post), post?.title);
|
log.DEBUG("Parsed Source Keys", Object.keys(post), post?.title);
|
||||||
log.VERBOSE("Post from feed: ", post);
|
log.VERBOSE("Post from feed: ", post);
|
||||||
|
|||||||
Reference in New Issue
Block a user