fix: remove old method of updating cashbox
This commit is contained in:
parent
ca2f5fe376
commit
afb4764903
1 changed files with 1 additions and 2 deletions
|
|
@ -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' }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue