|
@@ -57,7 +57,7 @@ export const handler: Handler = async (event, context) => {
|
|
await redisClient.store(article.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
|
|
await redisClient.store(article.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
|
|
totalPublished++
|
|
totalPublished++
|
|
}
|
|
}
|
|
- console.log(`Publicated ${totalPublished} new articles`);
|
|
|
|
|
|
+ console.log(`Published ${totalPublished} new articles`);
|
|
} catch (err: any) {
|
|
} catch (err: any) {
|
|
console.log('An error has occurred\n')
|
|
console.log('An error has occurred\n')
|
|
console.error(err.message);
|
|
console.error(err.message);
|