From 2ea86ef874572a88b7b6f15483ab3cdfa8ceec9d Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 11 Mar 2025 12:46:48 +0000 Subject: [PATCH 1/2] fix: automatic cashbox batch creation --- lib/cashbox-batches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cashbox-batches.js b/lib/cashbox-batches.js index 35a03d9e..9465ae70 100644 --- a/lib/cashbox-batches.js +++ b/lib/cashbox-batches.js @@ -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]) From 929a3babee0413805f19054269dd5cbb6a2e2634 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 11 Mar 2025 12:53:50 +0000 Subject: [PATCH 2/2] chore: add logging to ofac failures --- lib/sanctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sanctions.js b/lib/sanctions.js index 34b1b7fd..33900835 100644 --- a/lib/sanctions.js +++ b/lib/sanctions.js @@ -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) }) }