Skip to content

Commit

Permalink
use camel case for appVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Apr 27, 2024
1 parent c716317 commit e14ba56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')())
Expand Down
2 changes: 1 addition & 1 deletion bin/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e14ba56

Please sign in to comment.