mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 05:17:35 +00:00
chore: update selectors, remove api lookup for now
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+7
-6
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user