fix: automatic cashbox batch creation
This commit is contained in:
parent
ced1738316
commit
2ea86ef874
1 changed files with 1 additions and 1 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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue