不要怂,就是干,撸起袖子干!

Commit b51e4443 by Jan Aagaard Meier

Merge pull request #2782 from cdibbs/master

avoid cryptic errors by checking for transaction
2 parents f66dc707 209f3f45
Showing with 1 additions and 1 deletions
...@@ -1162,7 +1162,7 @@ module.exports = (function() { ...@@ -1162,7 +1162,7 @@ module.exports = (function() {
}); });
}); });
}).finally(function () { }).finally(function () {
if (internalTransaction) { if (internalTransaction && this.transaction) {
// If we created a transaction internally, we should clean it up // If we created a transaction internally, we should clean it up
return this.transaction.commit(); return this.transaction.commit();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!