Skip to content

Commit

Permalink
Merge pull request #36 from jakowenko/beta
Browse files Browse the repository at this point in the history
fix: allow SNAPSHOT_RETRIES and LATEST_RETRIES to be set to 0
  • Loading branch information
jakowenko authored Apr 29, 2021
2 parents 80c81af + 24782ed commit 43cabe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ let constants = {
FRIGATE_CAMERAS: FRIGATE_CAMERAS ? FRIGATE_CAMERAS.replace(/ /g, '').split(',') : null,
FRIGATE_ZONES: FRIGATE_ZONES ? FRIGATE_ZONES.replace(/ /g, '').split(',') : null,
FRIGATE_IMAGE_HEIGHT: FRIGATE_URL ? parseInt(FRIGATE_IMAGE_HEIGHT, 10) || 800 : null,
SNAPSHOT_RETRIES: FRIGATE_URL ? parseInt(SNAPSHOT_RETRIES, 10) || 10 : null,
LATEST_RETRIES: FRIGATE_URL ? parseInt(LATEST_RETRIES, 10) || 10 : null,
SNAPSHOT_RETRIES: FRIGATE_URL ? (SNAPSHOT_RETRIES ? parseInt(SNAPSHOT_RETRIES, 10) : 10) : null,
LATEST_RETRIES: FRIGATE_URL ? (LATEST_RETRIES ? parseInt(LATEST_RETRIES, 10) : 10) : null,
};

for (const [key, value] of Object.entries(constants)) {
Expand Down

0 comments on commit 43cabe6

Please sign in to comment.