Public
Back
Version 46
8/17/2023
export async function pollRSSFeeds() {
return Promise.all(
Object.entries(me.rssFeeds).map(async ([name, url]) => {
let items = await stevekrouse.newRSSItems({
url,
lastRunAt: me.lastRunAt,
});
if (items.length) {
const html = me.renderFeedsForEmail(items);
console.email({ subject: "Your Daily RSS Digest", html });
// @me.lastRunAt = Date.now();
return me.lastRunAt;
}
}),
);
}
Updated: October 23, 2023