Skip to content

Commit

Permalink
add undefined return to {model,doc}.save
Browse files Browse the repository at this point in the history
  • Loading branch information
lineus committed Jun 18, 2018
1 parent 3fed6f0 commit 9821432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ Document.prototype.$markValid = function(path) {
* @method save
* @memberOf Document
* @instance
* @return {Promise} Promise
* @return {Promise|undefined} Returns undefined if used with callback or a Promise otherwise.
* @api public
* @see middleware http://mongoosejs.com/docs/middleware.html
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ Model.prototype.$__save = function(options, callback) {
* @param {Object} [options.safe] overrides [schema's safe option](http://mongoosejs.com//docs/guide.html#safe)
* @param {Boolean} [options.validateBeforeSave] set to false to save without validating.
* @param {Function} [fn] optional callback
* @return {Promise} Promise
* @return {Promise|undefined} Returns undefined with callback or a Promise otherwise.
* @api public
* @see middleware http://mongoosejs.com/docs/middleware.html
*/
Expand Down

0 comments on commit 9821432

Please sign in to comment.