bug fixes

This commit is contained in:
Josh Harvey 2017-04-16 19:42:46 +03:00
parent f2a95e291a
commit 985e3811e3
14 changed files with 758 additions and 78 deletions

View file

@ -304,10 +304,14 @@ function populateDeviceId (req, res, next) {
next()
}
let oldVersionId = 'initial'
function populateSettings (req, res, next) {
const versionId = req.headers['config-version']
console.log('DEBUG300: %s', versionId)
if (versionId !== oldVersionId) {
console.log('DEBUG611: %s', versionId)
oldVersionId = versionId
}
if (!versionId) {
return settingsLoader.loadLatest()