Merge pull request #1804 from RafaelTaranto/fix/remove-old-method-for-updating-cashbox

LAM-230 fix: remove old method for updating cashbox
This commit is contained in:
Rafael Taranto 2025-03-13 08:19:55 +00:00 committed by GitHub
commit 9c41c52514

View file

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