From 5c3d021fe751fa6333ffffd9698b1974a813c484 Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Tue, 17 May 2016 17:50:13 -0400 Subject: [PATCH] Make the doc clear for `findORCreate` cb --- lib/persisted-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index c27cd279..105196c0 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -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) {