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

Commit b063d617 by Jim O'Brien Committed by Jan Aagaard Meier
1 parent ef4be30d
Showing with 4 additions and 5 deletions
...@@ -168,17 +168,16 @@ Transaction.prototype.prepareEnvironment = function() { ...@@ -168,17 +168,16 @@ Transaction.prototype.prepareEnvironment = function() {
).then(function (connection) { ).then(function (connection) {
self.connection = connection; self.connection = connection;
self.connection.uuid = self.id; self.connection.uuid = self.id;
if (self.sequelize.constructor.cls) {
self.sequelize.constructor.cls.set('transaction', self);
}
}).then(function () { }).then(function () {
return self.begin(); return self.begin();
}).then(function () { }).then(function () {
return self.setDeferrable(); return self.setDeferrable();
}).then(function () { }).then(function () {
return self.setIsolationLevel(); return self.setIsolationLevel();
}).then(function () { }).then(function () {
if (self.sequelize.constructor.cls) {
self.sequelize.constructor.cls.set('transaction', self);
}
return self.setAutocommit(); return self.setAutocommit();
}); });
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!