Skip to content

Commit

Permalink
fix: typo in hooks.md (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Jun 9, 2023
1 parent c410cfd commit e53a66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Note that calling `save` may trigger the other functions' hooks (such as `create

```javascript
instance.beforeUpsert(opts) // function's context is the instance
instance.bafterUpsert(instance, upsertResult)
instance.afterUpsert(instance, upsertResult)
```

### remove
Expand Down Expand Up @@ -130,7 +130,7 @@ instance.afterSave(instance, options)

// upsert hooks
instance.beforeUpsert(opts)
instance.bafterUpsert(instance, upsertResult)
instance.afterUpsert(instance, upsertResult)

// remove hooks
Model.beforeRemove(args)
Expand Down

0 comments on commit e53a66e

Please sign in to comment.