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

Option to do slugification before validation is done by sequelize #57

Open
codextj opened this issue Nov 17, 2022 · 0 comments
Open

Option to do slugification before validation is done by sequelize #57

codextj opened this issue Nov 17, 2022 · 0 comments

Comments

@codextj
Copy link

codextj commented Nov 17, 2022

Hello Jarrod,

Since I've changed allowNull property of slug column to false, sequelize is throwing SequelizeValidationError: notNull Violation: MyModel.slug cannot be nullError

If we can execute handleSlugify on beforeValidate hook then the above issue will be solved.

Thank you.
Best regards,
Tanmay

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