From 2ea86ef874572a88b7b6f15483ab3cdfa8ceec9d Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 11 Mar 2025 12:46:48 +0000 Subject: [PATCH] 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])