fixing postdate check

This commit is contained in:
Michael Huntington 2023-08-22 16:14:42 +00:00
parent 2c219e1d9e
commit f08ba1de30

2
bot.js
View File

@ -75,7 +75,7 @@ async function processFeed(feed, postDate, feedOptions) {
let validFeeds = feed.items let validFeeds = feed.items
.filter((item) => { .filter((item) => {
let pubDate = new Date(item.pubDate); let pubDate = new Date(item.pubDate);
return pubDate < postDate; return pubDate > postDate;
}) })
.slice(0, maxPostPerScan); .slice(0, maxPostPerScan);