From 21ec90a9f23cf25e1f759782ab85a6fb65e43df2 Mon Sep 17 00:00:00 2001 From: Elie Steinbock <3090527+elie222@users.noreply.github.com> Date: Sat, 11 May 2024 21:33:33 +0300 Subject: [PATCH] Log success I was getting 202 success code, so this change logs that as well. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9c800eb..e3464f3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -68,7 +68,7 @@ const indexSite = async (config) => { }, }); - if (res.status === 200) { + if (res.status > 200 && res.status < 300) { console.log(chunk.map((url) => `✅ Successfully submitted ${url}`).join("\n")); }