Skip to content

Commit 07bd246

Browse files
authored
fix: in stock wait time (#325)
Fixes #315 Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
1 parent 24786a4 commit 07bd246

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
7777
| `HEADLESS` | Puppeteer to run headless or not | Debugging related, default: `true` |
7878
| `IN_STOCK_WAIT_TIME` | Time to wait between requests to the same link if it has that card in stock | In seconds, default: `0` |
7979
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) | Debugging related, default: `info` |
80-
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic (Note: disabled adblocker) | Default: `false` |
80+
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic | Disables ad blocker, default: `false` |
8181
| `MICROCENTER_LOCATION` | Specific MicroCenter location to search | Default : `web` |
8282
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
8383
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |

src/store/lookup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function lookup(browser: Browser, store: Store) {
3333
continue;
3434
}
3535

36-
if (Config.page.inStockWaitTime && inStock[store.name]) {
36+
if (Config.page.inStockWaitTime && inStock[link.url]) {
3737
Logger.info(Print.inStockWaiting(link, store, true));
3838
continue;
3939
}

0 commit comments

Comments
 (0)