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

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