fixing published date check

This commit is contained in:
Michael (GP) 2022-12-12 20:00:54 -05:00
parent 12dfb3562e
commit c79e1eb547

2
bot.js
View File

@ -56,7 +56,7 @@ async function postFeed() {
feed.items.every(async (item) => {
let pubDate = new Date(item.pubDate);
if (pubDate < postDate) {
if (pubDate > postDate) {
let currentCount = ++count;
if (currentCount > maxPostPerScan) return false;