Skip to content

Commit

Permalink
Merge pull request #7499 from JulioJu/doc-validateSync
Browse files Browse the repository at this point in the history
Documentation: Document.prototype.validateSync returns ValidationError
  • Loading branch information
vkarpov15 authored Feb 8, 2019
2 parents d4825f6 + 971e98b commit c3502ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ Document.prototype.$__validate = function(callback) {
* }
*
* @param {Array|string} pathsToValidate only validate the given paths
* @return {MongooseError|undefined} MongooseError if there are errors during validation, or undefined if there is no error.
* @return {ValidationError|undefined} ValidationError if there are errors during validation, or undefined if there is no error.
* @api public
*/

Expand Down

0 comments on commit c3502ce

Please sign in to comment.