From 049a9bec94266257dfc69d80a0357593aff56010 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Mon, 4 Mar 2024 13:24:01 +0900 Subject: [PATCH] fixed for loop bug --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index c25e7ed..811c122 100644 --- a/main.js +++ b/main.js @@ -131,7 +131,7 @@ async function fetchNewPosts() { .reverse(); let newTimestampId = 0; - for (item in reversed) { + for (item of reversed) { const currentTimestampId = Date.parse(item.published); if (currentTimestampId > newTimestampId) {