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

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) {
sequelize.transaction(function (t2) {
// By default queries here will use t2
return Promise.all([
User.create({ name: 'Bob' }, { transaction: null });
User.create({ name: 'Mallory' }, { transaction: t1 });
User.create({ name: 'Bob' }, { transaction: null }),
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!