mirror of
https://github.com/knex/knex.git
synced 2025-11-19 11:33:58 +00:00
Merge pull request #1489 from agdevbridge/patch-1
Fixes warning "a promise was created but was not returned" in more places
This commit is contained in:
commit
8043e8318e
@ -46,10 +46,10 @@ function Transaction(client, container, config, outerTx) {
|
||||
}
|
||||
if (result && result.then && typeof result.then === 'function') {
|
||||
result.then((val) => {
|
||||
transactor.commit(val)
|
||||
return transactor.commit(val)
|
||||
})
|
||||
.catch((err) => {
|
||||
transactor.rollback(err)
|
||||
return transactor.rollback(err)
|
||||
})
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user