From 1d1dc4cabd671870040a2f8b2b7b783b22a3f0cd Mon Sep 17 00:00:00 2001 From: Ibraheem Saleh Date: Tue, 4 Feb 2025 22:03:47 -0800 Subject: [PATCH] Add NOT_AVAILABLE to ignored states! --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6146f6f..ab03b0c 100644 --- a/index.js +++ b/index.js @@ -169,7 +169,7 @@ async function pollStore(zip, store) { ) { const buttonState = data.data.productBySkuId.fulfillmentOptions.buttonStates[0].buttonState; console.log(`skuId: ${skuId} Store: ${store} Ship to: ${zip} -> buttonState: ${buttonState}`); - if (buttonState !== "SOLD_OUT") { + if (buttonState !== "SOLD_OUT" && buttonState !== "NOT_AVAILABLE") { found = true; const productUrl = getProductUrl(skuId); console.log(productUrl);