Skip to content

Commit

Permalink
Make the doc clear for findORCreate cb
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-61 committed May 17, 2016
1 parent 4fd1d2b commit 5c3d021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/persisted-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = function(registry) {
* @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.
* @param {Boolean} created True if the instance does not exist and gets created.
*/

PersistedModel.findOrCreate = function findOrCreate(query, data, callback) {
Expand Down

0 comments on commit 5c3d021

Please sign in to comment.