-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intercept the module root to patch
transaction
This commit intercepts the module root to patch the `transaction` method. This works because the `knex` module exports a constructor and the object that the constructor constructs has a `client` property that is the client being used. This client can have its `transaction` method updated in a way to preserve context.
- Loading branch information
1 parent
f5cca46
commit 80d3264
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters