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

Commit b010ac21 by Jan Aagaard Meier

Merge pull request #3579 from vilic/master

use then instead of catch for promise returned from a transaction autocallback
2 parents 799dcf7a 04fc02f4
Showing with 1 additions and 1 deletions
......@@ -1145,7 +1145,7 @@ module.exports = (function() {
return transaction.commit().then(function () {
resolve(result);
});
}).catch(function (err) {
}).then(null, function (err) {
transaction.rollback().then(function () {
reject(err);
}, function () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!