diff --git a/app.js b/app.js index abadfcf6a..846a54618 100644 --- a/app.js +++ b/app.js @@ -176,7 +176,7 @@ function createApp(config) { app.use(require('./middleware/querystring')) - app.use('/', require('./routes/index')(config.buildsha, config.appversion)) + app.use('/', require('./routes/index')(config.buildsha, config.appVersion)) app.use('/origins/github', require('./routes/originGitHub')()) app.use('/origins/crate', require('./routes/originCrate')()) app.use('/origins/conda', require('./routes/originConda')()) diff --git a/bin/config.js b/bin/config.js index be078f873..eea97035a 100644 --- a/bin/config.js +++ b/bin/config.js @@ -99,6 +99,6 @@ module.exports = { crawlerId: config.get('APPINSIGHTS_CRAWLER_APPLICATIONID'), crawlerKey: config.get('APPINSIGHTS_CRAWLER_APIKEY') }, - appversion: config.get('APP_VERSION'), + appVersion: config.get('APP_VERSION'), buildsha: config.get('BUILD_SHA') } diff --git a/routes/index.js b/routes/index.js index 4033816f1..72c7e6253 100644 --- a/routes/index.js +++ b/routes/index.js @@ -12,8 +12,8 @@ module.exports = router let version let sha -function setup(buildsha, appversion) { - version = appversion +function setup(buildsha, appVersion) { + version = appVersion sha = buildsha return router }