Merge pull request #1799 from RafaelTaranto/fix/automatic-batch-creation-failing
LAM-230 fix: automatic cashbox batch creation
This commit is contained in:
commit
d0394a3eb3
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ function createCashboxBatch (deviceId, cashboxCount) {
|
|||
|
||||
return db.tx(t => {
|
||||
const batchId = uuid.v4()
|
||||
const q1 = t.none(sql, [batchId, deviceId])
|
||||
const q1 = t.one(sql, [batchId, deviceId])
|
||||
const q2 = t.none(sql2, [batchId, deviceId])
|
||||
const q3 = t.none(sql3, [batchId, deviceId])
|
||||
return t.batch([q1, q2, q3])
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ const loadOrUpdateSanctions = () => {
|
|||
sanctionStatus.timestamp = Date.now()
|
||||
})
|
||||
.catch(e => {
|
||||
logger.error('Couldn\'t load OFAC sanction list!')
|
||||
logger.error('Couldn\'t load OFAC sanction list!', e)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue