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

You need to sign in or sign up before continuing.
Commit 34da9ce5 by Jan Aagaard Meier

Merge pull request #3521 from mdarveau/patch-1

Update transactions.md
2 parents 92e679e1 3430b552
Showing with 2 additions and 2 deletions
...@@ -91,8 +91,8 @@ sequelize.transaction(function (t1) { ...@@ -91,8 +91,8 @@ sequelize.transaction(function (t1) {
sequelize.transaction(function (t2) { sequelize.transaction(function (t2) {
// By default queries here will use t2 // By default queries here will use t2
return Promise.all([ return Promise.all([
User.create({ name: 'Bob' }, { transaction: null }); User.create({ name: 'Bob' }, { transaction: null }),
User.create({ name: 'Mallory' }, { transaction: t1 }); User.create({ name: 'Mallory' }, { transaction: t1 })
]); ]);
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!