fix/recordTrade_is_void
This commit is contained in:
parent
bbde0fc2b6
commit
7c80eb257e
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ function plugins (settings, deviceId) {
|
|||
)
|
||||
const tradeEntry = massage(_tradeEntry, error)
|
||||
const sql = pgp.helpers.insert(tradeEntry, null, 'trades') + 'RETURNING *'
|
||||
db.tx(t => {
|
||||
return db.tx(t => {
|
||||
return t.oneOrNone(sql)
|
||||
.then(newTrade => recordTradeAndTx(newTrade.id, _tradeEntry, t))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue