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

Commit 3430b552 by Manuel Darveau

Update transactions.md

Fixed syntax in transaction example.
1 parent 92e679e1
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!