fix: remove duplicated createBatch() calls

fix: rename cassetteMaxCapacity to snake uppercase
fix: notification module retrieving the wrong override fields
This commit is contained in:
Sérgio Salgado 2021-11-29 19:57:28 +00:00
parent 31dcf890de
commit 15e0182ba1
7 changed files with 19 additions and 39 deletions

View file

@ -6,7 +6,7 @@ function getMachine (machineId) {
.then(machines => machines.find(({ deviceId }) => deviceId === machineId))
}
function machineAction ({ deviceId, action, cashbox, cassette1, cassette2, cassette3, cassette4, newName }) {
function machineAction ({ deviceId, action, cashbox, cassette1, cassette2, cassette3, cassette4, newName }, context) {
const operatorId = context.res.locals.operatorId
return getMachine(deviceId)
.then(machine => {