Skip to content

Commit 333d2e7

Browse files
committed
correcting environment variable naming
1 parent 6ddbb4f commit 333d2e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

routes/currency-exchange-routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ let BASE_URI;
99
let SAMPLE2_URI;
1010
if (process.env.NODE_ENV === "production") {
1111
EXCHANGE_RATE_APIKEY = process.env.EXCHANGE_RATE_APIKEY;
12-
BASE_URI = process.env.BASE_URI;
12+
BASE_URI = process.env.EXCHANGE_BASE_URI;
1313
SAMPLE2_URI = process.env.SAMPLE2_URI;
1414
} else {
1515
EXCHANGE_RATE_APIKEY = keys.exchangerateapi.APIKEY;
16-
BASE_URI = keys.exchangerateapi.URI;
16+
BASE_URI = keys.exchangerateapi.BASE_URI;
1717
SAMPLE2_URI = keys.exchangerateapi.SAMPLE2_URI;
1818
}
1919

routes/weatherbit-routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (process.env.NODE_ENV === "production") {
1111
WEATHERBIT_URI = process.env.WEATHERBIT_URI;
1212
} else {
1313
WEATHERBIT_KEY = keys.weatherbitapi.APIKEY;
14-
WEATHERBIT_URI = keys.weatherbitapi.URI;
14+
WEATHERBIT_URI = keys.weatherbitapi.BASE_URI;
1515
}
1616

1717
router.get('/', (req, res) => {

0 commit comments

Comments
 (0)