fix: update counts stale ui

This commit is contained in:
Rafael Taranto 2025-06-24 11:12:10 +01:00
parent 801e7e54ff
commit d9ea7407ee

View file

@ -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 }