Merge pull request #1799 from RafaelTaranto/fix/automatic-batch-creation-failing

LAM-230 fix: automatic cashbox batch creation
This commit is contained in:
Rafael Taranto 2025-03-11 13:17:18 +00:00 committed by GitHub
commit d0394a3eb3
2 changed files with 2 additions and 2 deletions

View file

@ -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])

View file

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