-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support for JSONB #79
Comments
I am running into this as well, I am guessing that paper trail does not support JSON or JSONB? |
AFAIK it doesn't support it but I'm happy to merge a pull request for this. |
Nope I still don't see my JSONB objects inside of |
@nielsgl As far as I can tell this is omitting JSONB columns because they are objects. I'm not exactly sure how to fix this. sequelize-paper-trail/lib/index.js Lines 361 to 367 in 283b8b7
|
I don't fully understand what that omitBy statement does, but I think using rawAttributes might fix this: currentVersion = _.pick(currentVersion, Object.keys(instance.rawAttributes)); |
Check PR #85. |
fixed it in my fork |
I don't see any of my JSONB columns being stored in the revisions. Am I doing something wrong or does paper trail not support JSONB for Postgres?
The text was updated successfully, but these errors were encountered: