Skip to content

Commit

Permalink
chore: update selectors, remove api lookup for now
Browse files Browse the repository at this point in the history
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
jef committed Dec 4, 2020
1 parent 75ee95b commit e67d97f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/store/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/store/model/bestbuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/store/model/newegg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e67d97f

Please sign in to comment.