fix: add to the pids object rather than overwrite
This commit is contained in:
parent
b8ae64a798
commit
bdb094f3cc
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ function poll (req, res, next) {
|
|||
const terms = configManager.getTermsConditions(settings.config)
|
||||
const enablePaperWalletOnly = configManager.getCompliance(settings.config).enablePaperWalletOnly
|
||||
|
||||
state.pids[operatorId] = { [deviceId]: { pid, ts: Date.now() } }
|
||||
state.pids = _.update(operatorId, _.set(deviceId, { pid, ts: Date.now() }), state.pids)
|
||||
|
||||
return Promise.all([pi.pollQueries(serialNumber, deviceTime, req.query, machineVersion, machineModel), triggersPromise, triggersAutomationPromise])
|
||||
.then(([results, triggers, triggersAutomation]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue