|
@@ -37,7 +37,7 @@ export const handler: Handler = async (event, context) => {
|
|
|
const length = articles.length;
|
|
|
|
|
|
// Order has to be reverser to appear in the correct order when posting
|
|
|
- for (let i = length; i > length; i--) {
|
|
|
+ for (let i = length - 1; i >= 0; i--) {
|
|
|
const article = articles[i];
|
|
|
const exists = await redisClient.retrieve(article.link);
|
|
|
if (exists !== null) {
|