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 })
|
||||
return machine
|
||||
})
|
||||
.then(
|
||||
.then(() =>
|
||||
machineLoader.setMachine(
|
||||
{ deviceId, action, cashUnits, newName },
|
||||
operatorId,
|
||||
),
|
||||
)
|
||||
.then(getMachine(deviceId))
|
||||
.then(() => getMachine(deviceId))
|
||||
}
|
||||
|
||||
module.exports = { machineAction }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue