Merge pull request #1983 from noderat/patch-1

Correct JSDoc findOrCreate() callback in PersistedModel
This commit is contained in:
Simon Ho 2016-01-22 10:21:17 -08:00
commit 76bd587198
1 changed files with 2 additions and 1 deletions

View File

@ -135,9 +135,10 @@ module.exports = function(registry) {
* <br/>See
* [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforqueries).
* @param {Object} data Data to insert if object matching the `where` filter is not found.
* @callback {Function} callback Callback function called with `cb(err, instance)` arguments. Required.
* @callback {Function} callback Callback function called with `cb(err, instance, created)` arguments. Required.
* @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object).
* @param {Object} instance Model instance matching the `where` filter, if found.
* @param {Boolean} created True if the instance matching the `where` filter was created.
*/
PersistedModel.findOrCreate = function findOrCreate(query, data, callback) {