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

Commit 04fc02f4 by vilicvane

use then instead of catch for promise returned from a callback

1 parent 46887666
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!