Skip to content

Commit

Permalink
fix: in stock wait time (#325)
Browse files Browse the repository at this point in the history
Fixes #315

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
jef committed Sep 26, 2020
1 parent 24786a4 commit 07bd246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -77,7 +77,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `HEADLESS` | Puppeteer to run headless or not | Debugging related, default: `true` |
| `IN_STOCK_WAIT_TIME` | Time to wait between requests to the same link if it has that card in stock | In seconds, default: `0` |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) | Debugging related, default: `info` |
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic (Note: disabled adblocker) | Default: `false` |
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic | Disables ad blocker, default: `false` |
| `MICROCENTER_LOCATION` | Specific MicroCenter location to search | Default : `web` |
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
Expand Down
2 changes: 1 addition & 1 deletion src/store/lookup.ts
Expand Up @@ -33,7 +33,7 @@ async function lookup(browser: Browser, store: Store) {
continue;
}

if (Config.page.inStockWaitTime && inStock[store.name]) {
if (Config.page.inStockWaitTime && inStock[link.url]) {
Logger.info(Print.inStockWaiting(link, store, true));
continue;
}
Expand Down

0 comments on commit 07bd246

Please sign in to comment.