feat: add machine info in poll response
This commit is contained in:
parent
bde1f4c69c
commit
5c732aa53b
1 changed files with 3 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ function poll (req, res, next) {
|
|||
const triggers = configManager.getTriggers(settings.config)
|
||||
|
||||
const operatorInfo = configManager.getOperatorInfo(settings.config)
|
||||
const machineInfo = { deviceId: req.deviceId, deviceName: req.deviceName }
|
||||
const cashOutConfig = configManager.getCashOut(deviceId, settings.config)
|
||||
const receipt = configManager.getReceipt(settings.config)
|
||||
const terms = configManager.getTermsConditions(settings.config)
|
||||
|
|
@ -107,6 +108,7 @@ function poll (req, res, next) {
|
|||
hasLightning,
|
||||
receipt,
|
||||
operatorInfo,
|
||||
machineInfo,
|
||||
triggers
|
||||
}
|
||||
// BACKWARDS_COMPATIBILITY 7.5
|
||||
|
|
@ -361,7 +363,7 @@ function triggerSuspend (req, res, next) {
|
|||
const date = new Date()
|
||||
date.setDate(date.getDate() + days);
|
||||
customers.update(id, { suspendedUntil: date })
|
||||
.then(customer => {
|
||||
.then(customer => {
|
||||
notifier.notifyIfActive('compliance', 'customerComplianceNotify', customer, req.deviceId, 'SUSPENDED', days)
|
||||
return respond(req, res, { customer })
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue