fixing postdate check
This commit is contained in:
parent
2c219e1d9e
commit
f08ba1de30
2
bot.js
2
bot.js
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user