Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

101: Allow the noPaperTrail option to be set via continuation-local-s… #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlw0
Copy link

@jlw0 jlw0 commented Apr 3, 2020

101: Allow the noPaperTrail option to be set via continuation-local-storage

#101

@@ -6,7 +6,5 @@ module.exports = (sequelize, DataTypes) => {
// associations can be defined here
};

User.Revision = User.hasPaperTrail();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this line for a couple reasons. First, this line was causing the hooks to be registered twice for this model since this method is also called in the tests. Second, if we call "hasPaperTrail" here, the hooks will not be compatible with the CLS.

@jlw0
Copy link
Author

jlw0 commented Apr 3, 2020

@nielsgl it has been a while since the last release. Is this project still active?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant