Skip to content

Commit

Permalink
Update README.md (#168)
Browse files Browse the repository at this point in the history
Correction on typo referencing the wrong transaction hook name (`commit` should be `end`).
  • Loading branch information
Shad authored and daffl committed Aug 4, 2018
1 parent f828d26 commit 810a2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ module.exports = {
};
```

To use the transactions feature, you must ensure that the three hooks (start, commit and rollback) are being used.
To use the transactions feature, you must ensure that the three hooks (start, end and rollback) are being used.

At the start of any request, a new transaction will be started. All the changes made during the request to the services that are using the `feathers-knex` will use the transaction. At the end of the request, if sucessful, the changes will be commited. If an error occurs, the changes will be forfeit, all the `creates`, `patches`, `updates` and `deletes` are not going to be commited.

Expand Down

0 comments on commit 810a2a2

Please sign in to comment.