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

model and document is null on revision record #96

Open
getheard opened this issue Jan 21, 2020 · 1 comment
Open

model and document is null on revision record #96

getheard opened this issue Jan 21, 2020 · 1 comment

Comments

@getheard
Copy link

getheard commented Jan 21, 2020

The versions I'm using:

    "sequelize": "^5.18.4",
    "sequelize-cli": "^5.5.1",
    "sequelize-paper-trail": "^3.0.1",

For some reason, when a new Revision record is created, it is missing these columns:

 id | model | document | operation | revision | document_id |         createdAt          |         updatedAt
----+-------+----------+-----------+----------+-------------+----------------------------+----------------------------
  1 |       |          |           |          |          41 | 2020-01-20 17:20:35.608-08 | 2020-01-20 17:20:35.608-08

I had to manually create the revision tables via a migration because the module was not creating it. I don't see why the document, model and operation values are not being attached, since the revisions association seem to be working (the debug logs the before and after hooks)

@getheard
Copy link
Author

@nielsgl Pinging you in case you no longer check this 😅

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

No branches or pull requests

1 participant