kscout / serverless-registry-api

API which curates serverless applications.
https://api.kscout.io
GNU General Public License v2.0
0 stars 1 forks source link

fixed reading Config.BotAPIURL value from env var #207

Closed Noah-Huppert closed 5 years ago

Noah-Huppert commented 5 years ago

The API was supposed to get the config.Config.BotAPIURL field value from the APP_BOT_API_URL environment variable. However due to: 1) 2 capital words "API" and "URL" next to each other and 2) the logic used to retrieve config values from env vars: the app was looking for config in the APP_BOT_APIURL env var.

This PR manually overrides the name of the env var which the BotAPIURL field looks in to be the correct one.