fix: replace serial with uuid and remove incorrect promise handling
This commit is contained in:
parent
d9ffca8a35
commit
af53949ef9
2 changed files with 1 additions and 3 deletions
|
|
@ -13,8 +13,6 @@ function createCashboxBatch (rec) {
|
|||
const newBatch = await t.oneOrNone(sql, [rec.deviceId])
|
||||
return t.oneOrNone(sql2, [newBatch.id, newBatch.device_id])
|
||||
})
|
||||
.then(data => data)
|
||||
.catch(error => error)
|
||||
}
|
||||
|
||||
module.exports = { createCashboxBatch }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue