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
|
// Do API inventory validation in realtime (no cache) if available
|
||||||
if (
|
// if (
|
||||||
store.realTimeInventoryLookup !== undefined &&
|
// store.realTimeInventoryLookup !== undefined &&
|
||||||
link.itemNumber !== undefined
|
// link.itemNumber !== undefined
|
||||||
) {
|
// ) {
|
||||||
return store.realTimeInventoryLookup(link.itemNumber);
|
// return store.realTimeInventoryLookup(link.itemNumber);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const BestBuy: Store = {
|
|||||||
model: 'test:model',
|
model: 'test:model',
|
||||||
series: 'test:series',
|
series: 'test:series',
|
||||||
url:
|
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',
|
brand: 'nvidia',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export const Newegg: Store = {
|
|||||||
text: ['are you a human?']
|
text: ['are you a human?']
|
||||||
},
|
},
|
||||||
inStock: {
|
inStock: {
|
||||||
container: 'div#ProductBuy .btn-primary',
|
container: '#ProductBuy',
|
||||||
text: ['add to cart']
|
text: ['add to cart']
|
||||||
},
|
},
|
||||||
maxPrice: {
|
maxPrice: {
|
||||||
|
|||||||
Reference in New Issue
Block a user