From e67d97fe93459c519ac2b4b7b17f6c2efc70ac19 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Fri, 4 Dec 2020 17:05:28 -0500 Subject: [PATCH] chore: update selectors, remove api lookup for now Signed-off-by: Jef LeCompte --- src/store/lookup.ts | 13 +++++++------ src/store/model/bestbuy.ts | 2 +- src/store/model/newegg.ts | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/store/lookup.ts b/src/store/lookup.ts index 8a74ce6..8454a50 100644 --- a/src/store/lookup.ts +++ b/src/store/lookup.ts @@ -354,13 +354,14 @@ async function lookupCardInStock(store: Store, page: Page, link: Link) { } } + // Fixme: currently causing issues // Do API inventory validation in realtime (no cache) if available - if ( - store.realTimeInventoryLookup !== undefined && - link.itemNumber !== undefined - ) { - return store.realTimeInventoryLookup(link.itemNumber); - } + // if ( + // store.realTimeInventoryLookup !== undefined && + // link.itemNumber !== undefined + // ) { + // return store.realTimeInventoryLookup(link.itemNumber); + // } return true; } diff --git a/src/store/model/bestbuy.ts b/src/store/model/bestbuy.ts index d513e92..6725521 100644 --- a/src/store/model/bestbuy.ts +++ b/src/store/model/bestbuy.ts @@ -18,7 +18,7 @@ export const BestBuy: Store = { model: 'test:model', series: 'test:series', url: - 'https://www.bestbuy.com/site/evga-sc-ultra-gaming-nvidia-geforce-gtx-1660-ti-6gb-gddr6-pci-express-3-0-graphics-card-black-gray/6373500.p?skuId=6373500&intl=nosplash' + 'https://www.bestbuy.com/site/insignia-8qt-digital-multi-cooker-stainless-steel/6258941.p?skuId=6258941&intl=nosplash' }, { brand: 'nvidia', diff --git a/src/store/model/newegg.ts b/src/store/model/newegg.ts index aaa015e..9977bac 100644 --- a/src/store/model/newegg.ts +++ b/src/store/model/newegg.ts @@ -8,7 +8,7 @@ export const Newegg: Store = { text: ['are you a human?'] }, inStock: { - container: 'div#ProductBuy .btn-primary', + container: '#ProductBuy', text: ['add to cart'] }, maxPrice: {