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' }))