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 })
return machine
})
.then(
.then(() =>
machineLoader.setMachine(
{ deviceId, action, cashUnits, newName },
operatorId,
),
)
.then(getMachine(deviceId))
.then(() => getMachine(deviceId))
}
module.exports = { machineAction }