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

Commit 12acc40c by Ashok Fernandez

Fixed typo in code example

1 parent 8d5ae0c4
Showing with 2 additions and 2 deletions
...@@ -197,9 +197,9 @@ If you use `Model.bulkCreate(...)` with the `updatesOnDuplicate` option, changes ...@@ -197,9 +197,9 @@ If you use `Model.bulkCreate(...)` with the `updatesOnDuplicate` option, changes
``` ```
// Bulk updating existing users with updatesOnDuplicate option // Bulk updating existing users with updatesOnDuplicate option
Users.bulkCreate({ id: 1, isMemeber: true}, Users.bulkCreate([{ id: 1, isMemeber: true},
{ id: 2, isMember: false}], { id: 2, isMember: false}],
{ updatesOnDuplicate: ['isMember']} ) { updatesOnDuplicate: ['isMember']})
User.beforeBulkCreate(function (users, options) { User.beforeBulkCreate(function (users, options) {
users.forEach(function (user) { users.forEach(function (user) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!