Using config manager now
This commit is contained in:
parent
8d379555f8
commit
ea36d66167
1 changed files with 2 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ function poll (req, res, next) {
|
||||||
const operatorInfo = configManager.getOperatorInfo(settings.config)
|
const operatorInfo = configManager.getOperatorInfo(settings.config)
|
||||||
const cashOutConfig = configManager.getCashOut(deviceId, settings.config)
|
const cashOutConfig = configManager.getCashOut(deviceId, settings.config)
|
||||||
const receipt = configManager.getReceipt(settings.config)
|
const receipt = configManager.getReceipt(settings.config)
|
||||||
|
const terms = configManager.getTermsConditions(settings.config)
|
||||||
|
|
||||||
pids[deviceId] = { pid, ts: Date.now() }
|
pids[deviceId] = { pid, ts: Date.now() }
|
||||||
|
|
||||||
|
|
@ -127,9 +128,8 @@ function poll (req, res, next) {
|
||||||
// BACKWARDS_COMPATIBILITY 7.4.9
|
// BACKWARDS_COMPATIBILITY 7.4.9
|
||||||
// machines before 7.4.9 expect t&c on poll
|
// machines before 7.4.9 expect t&c on poll
|
||||||
if (!machineVersion || semver.lt(machineVersion, '7.4.9')) {
|
if (!machineVersion || semver.lt(machineVersion, '7.4.9')) {
|
||||||
response.terms = config.termsScreenActive && config.termsScreenText ? createTerms(config) : null
|
response.terms = createTerms(terms)
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.json(_.assign(response, results))
|
return res.json(_.assign(response, results))
|
||||||
})
|
})
|
||||||
.catch(next)
|
.catch(next)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue