From 32f114b23527ee247c84c081a2cd0264de3b4847 Mon Sep 17 00:00:00 2001 From: xninjax Date: Tue, 13 Oct 2020 15:30:26 -0600 Subject: [PATCH] fix: max price getter updated to match .env (#516) Fixes #514, resolves #510 --- README.md | 4 ++-- src/config.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b590785..2a22585 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,8 @@ Here is a list of variables that you can use to customize your newly copied `.en | `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` | | `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received | Default: `10000` | | `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received | Default: `3600000` | -| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same store | In milliseconds, default: `5000` | -| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same store | In milliseconds, default: `10000` | +| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same product page | In milliseconds, default: `5000` | +| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same product page | In milliseconds, default: `10000` | | `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` | | `PHONE_CARRIER` | [Supported carriers](#supported-carriers) for SMS | Email configuration required | | `PHONE_NUMBER` | 10 digit phone number | E.g.: `1234567890`, email configuration required | diff --git a/src/config.ts b/src/config.ts index de566bc..0c47fa7 100644 --- a/src/config.ts +++ b/src/config.ts @@ -213,9 +213,9 @@ const store = { country: envOrString(process.env.COUNTRY, 'usa'), maxPrice: { series: { - 3070: envOrNumber(process.env.MAX_PRICE_3070), - 3080: envOrNumber(process.env.MAX_PRICE_3080), - 3090: envOrNumber(process.env.MAX_PRICE_3090) + 3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070), + 3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080), + 3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090) } }, microCenterLocation: envOrArray(process.env.MICROCENTER_LOCATION, ['web']),