You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have enabled user tracking by following the instructions on the readme. However, when we read Revision.build it does not populate the associated column.
So if I pass the userId to the sequelize options when adding or updating a model I get the following SQL:
Executing (default): INSERT INTO `revisions` (`model`,`document`,`operation`,`document_id`,`revision`,`id`,`created_at`,`updated_at`) VALUES (?,?,?,?,?,?,?,?);
The text was updated successfully, but these errors were encountered:
I am having the same issue, after looking into the source code, I found out that defineModels is missing the userModelAttribute definition. After adding
it adds the userId fine. I had to manually create the revision tables though, since the migration just did not do the tables by itself, had to add the userId column manually as well.
I have enabled user tracking by following the instructions on the readme. However, when we read
Revision.build
it does not populate the associated column.So if I pass the
userId
to the sequelize options when adding or updating a model I get the following SQL:The text was updated successfully, but these errors were encountered: