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

Commit e1b5ab5d by Cristi Scheye Committed by Jan Aagaard Meier

[ci skip] 📝 update hooks doc (#5849)

No instances in params for bulk commands; see https://github.com/sequelize/sequelize/blob/master/lib/hooks.js#L58
1 parent 278b517d
Showing with 4 additions and 4 deletions
......@@ -7,8 +7,8 @@ For a full list of hooks, see [Hooks API](/api/hooks).
```
(1)
beforeBulkCreate(instances, options, fn)
beforeBulkDestroy(instances, options, fn)
beforeBulkUpdate(instances, options, fn)
beforeBulkDestroy(options, fn)
beforeBulkUpdate(options, fn)
(2)
beforeValidate(instance, options, fn)
(-)
......@@ -31,8 +31,8 @@ For a full list of hooks, see [Hooks API](/api/hooks).
afterUpdate(instance, options, fn)
(6)
afterBulkCreate(instances, options, fn)
afterBulkDestroy(instances, options, fn)
afterBulkUpdate(instances, options, fn)
afterBulkDestroy(options, fn)
afterBulkUpdate(options, fn)
```
## Declaring Hooks
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!