Make the doc clear for `findORCreate` cb

This commit is contained in:
Amir Jafarian 2016-05-17 17:50:13 -04:00
parent 4fd1d2bcd4
commit 5c3d021fe7
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ module.exports = function(registry) {
* @callback {Function} callback Callback function called with `cb(err, instance, created)` 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 {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 {Object} instance Model instance matching the `where` filter, if found.
* @param {Boolean} created True if the instance matching the `where` filter was created. * @param {Boolean} created True if the instance does not exist and gets created.
*/ */
PersistedModel.findOrCreate = function findOrCreate(query, data, callback) { PersistedModel.findOrCreate = function findOrCreate(query, data, callback) {