From d9ea7407eeed760c44300507d84789f36a611854 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 24 Jun 2025 11:12:10 +0100 Subject: [PATCH] fix: update counts stale ui --- packages/server/lib/new-admin/services/machines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/lib/new-admin/services/machines.js b/packages/server/lib/new-admin/services/machines.js index 386da1fd..f656cb25 100644 --- a/packages/server/lib/new-admin/services/machines.js +++ b/packages/server/lib/new-admin/services/machines.js @@ -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 }