From 810a2a23b07687643769571dda93acf8347de148 Mon Sep 17 00:00:00 2001 From: Shad Date: Sat, 4 Aug 2018 18:50:42 +0200 Subject: [PATCH] Update README.md (#168) Correction on typo referencing the wrong transaction hook name (`commit` should be `end`). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1723bee..44c01b7 100644 --- a/README.md +++ b/README.md @@ -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.