Skip to content

Commit

Permalink
fix(amazon-uk): add label for ps5
Browse files Browse the repository at this point in the history
Fixes #2036
  • Loading branch information
jef committed Mar 2, 2021
1 parent 6934d5b commit 8ee6815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/store/lookup.ts
Expand Up @@ -449,15 +449,6 @@ 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.labels.inStock) {
const options = {
...baseOptions,
Expand Down
6 changes: 6 additions & 0 deletions src/store/model/amazon.ts
Expand Up @@ -708,6 +708,12 @@ export const Amazon: Store = {
brand: 'sony',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1',
labels: {
inStock: {
container: '#productTitle',
text: ['playstation 5 console'],
},
},
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.amazon.com/dp/B08FC5L3RG',
Expand Down

0 comments on commit 8ee6815

Please sign in to comment.