Back

Version 3

6/1/2023
export async function hnFollowPollJobError({ lastRunAt }: Interval) {
try {
let posts = await @stevekrouse.hnLatestPosts({
lastSyncTime: lastRunAt,
search_by_date: true,
});
let { text, subject } = await @stevekrouse.hnEmail({ posts });
console.log(posts);
console.log(!posts.length);
if (!posts.length)
console.email(undefined, "HN Follow may be bugging");
}
catch (e) {
console.log("error");
console.email(undefined, "HN Follow may be bugging");
throw e;
}
}
Updated: October 23, 2023