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

Commit cfba87fe by Mick Hansen

Merge pull request #3507 from XemsDoom/fix-hook-doc

Updates hooks.md
2 parents 095f2b75 609e8aed
Showing with 2 additions and 2 deletions
......@@ -143,10 +143,10 @@ afterBulkCreate / afterBulkUpdate / afterBulkDestroy
If you want to emit hooks for each individual record, along with the bulk hooks you can pass `individualHooks: true` to the call.
```js
Model.destroy({ where: {accessLevel: 0}}, {individualHooks: true})
Model.destroy({ where: {accessLevel: 0}, individualHooks: true})
// Will select all records that are about to be deleted and emit before- + after- Destroy on each instance
Model.update({username: 'Toni'}, { where: {accessLevel: 0}}, {individualHooks: true})
Model.update({username: 'Toni'}, { where: {accessLevel: 0}, individualHooks: true})
// Will select all records that are about to be updated and emit before- + after- Update on each instance
```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!