Merge pull request #1894 from RafaelTaranto/fix/update-counts-on-cash-units

LAM-1460 fix: update counts stale ui
This commit is contained in:
Rafael Taranto 2025-06-25 11:20:41 +01:00 committed by GitHub
commit c006074e05

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 }