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:
Mikael Lepistö 2016-06-13 13:00:53 +03:00 committed by GitHub
commit 8043e8318e

View File

@ -46,10 +46,10 @@ function Transaction(client, container, config, outerTx) {
} }
if (result && result.then && typeof result.then === 'function') { if (result && result.then && typeof result.then === 'function') {
result.then((val) => { result.then((val) => {
transactor.commit(val) return transactor.commit(val)
}) })
.catch((err) => { .catch((err) => {
transactor.rollback(err) return transactor.rollback(err)
}) })
} }
return null; return null;