fix: update counts stale ui
This commit is contained in:
parent
801e7e54ff
commit
d9ea7407ee
1 changed files with 2 additions and 2 deletions
|
|
@ -15,13 +15,13 @@ function machineAction({ deviceId, action, cashUnits, newName }, context) {
|
||||||
throw new UserInputError(`machine:${deviceId} not found`, { deviceId })
|
throw new UserInputError(`machine:${deviceId} not found`, { deviceId })
|
||||||
return machine
|
return machine
|
||||||
})
|
})
|
||||||
.then(
|
.then(() =>
|
||||||
machineLoader.setMachine(
|
machineLoader.setMachine(
|
||||||
{ deviceId, action, cashUnits, newName },
|
{ deviceId, action, cashUnits, newName },
|
||||||
operatorId,
|
operatorId,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.then(getMachine(deviceId))
|
.then(() => getMachine(deviceId))
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { machineAction }
|
module.exports = { machineAction }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue