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

Allow options to be passed to all Controllers #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danieldilly
Copy link

@danieldilly danieldilly commented Mar 15, 2020

Enables the passing of options to the static sequelize methods create(), save(), and destroy() used in the Controller files create.js, update.js, and delete.js, respectively.

I am submitting this update because I need this functionality in order to enable user tracking in the sequelize-paper-trail library. I need to be able to pass a userId property through the options object that gets passed to the methods I mentioned earlier.

The passing of the options object was already set up for the other Controller files: read.js & list.js. This enables the same functionality for the other Controllers.

Enables the passing of options to the static sequelize methods create(), save(), and destroy() used in the Controller files create.js, update.js, and delete.js, respectively.
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