From afb4764903e2a1f65df0bd98b3bdb21c11a189dd Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Thu, 13 Mar 2025 08:18:47 +0000 Subject: [PATCH] fix: remove old method of updating cashbox --- lib/routes/cashboxRoutes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/routes/cashboxRoutes.js b/lib/routes/cashboxRoutes.js index 6fcc88bf..27d29f14 100644 --- a/lib/routes/cashboxRoutes.js +++ b/lib/routes/cashboxRoutes.js @@ -28,8 +28,7 @@ function cashboxRemoval (req, res, next) { return cashbox.createCashboxBatch(req.deviceId, machine.cashbox) .then(batch => Promise.all([ cashbox.getBatchById(batch.id), - getMachineName(batch.device_id), - setMachine({ deviceId: req.deviceId, action: 'emptyCashInBills' }, operatorId) + getMachineName(batch.device_id) ])) }) .then(([batch, machineName]) => res.status(200).send({ batch: _.merge(batch, { machineName }), status: 'OK' }))