Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit a03a14ba
authored
Jan 12, 2016
by
Stefan Kleeschulte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved validationFailed hook documentation, updated generated api docs
1 parent
ea444d31
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
docs/api/hooks.md
lib/hooks.js
docs/api/hooks.md
View file @
a03a14b
This diff is collapsed.
Click to expand it.
lib/hooks.js
View file @
a03a14b
...
@@ -227,7 +227,8 @@ Hooks.hasHooks = Hooks.hasHook;
...
@@ -227,7 +227,8 @@ Hooks.hasHooks = Hooks.hasHook;
/**
/**
* A hook that is run when validation fails
* A hook that is run when validation fails
* @param {String} name
* @param {String} name
* @param {Function} fn A callback function that is called with instance, options, error
* @param {Function} fn A callback function that is called with instance, options, error. Error is the
* SequelizeValidationError. If the callback throws an error, it will replace the original validation error.
* @name validationFailed
* @name validationFailed
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment