Merge pull request #1983 from noderat/patch-1
Correct JSDoc findOrCreate() callback in PersistedModel
This commit is contained in:
commit
76bd587198
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue