From 0f9dd93abacf451f09fff9a6d99ec4d13d1c2a29 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 28 Jul 2015 08:29:43 -0700 Subject: [PATCH] Fix jsdocs for methods with where argument --- lib/persisted-model.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index a98a31b74..67585a9da 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -114,7 +114,7 @@ module.exports = function(registry) { * Returns an object, not collection. * If not found, create the object using data provided as second argument. * - * @param {Object} where Where clause, such as `{where: {test: 'me'}}` + * @param {Object} where Where clause, such as `{test: 'me'}` *
see [Where filter](http://docs.strongloop.com/display/public/LB/Where+filter). * @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. @@ -224,7 +224,7 @@ module.exports = function(registry) { * * @param {Object} [where] Optional where filter, like: * ``` - * {where: { key: val, key2: {gt: 'val2'}, ...} } + * {key: val, key2: {gt: 'val2'}, ...} * ``` *
See [Where filter](http://docs.strongloop.com/display/LB/Where+filter). * @@ -261,7 +261,7 @@ module.exports = function(registry) { * * @param {Object} [where] Optional `where` filter, like * ``` - * {where: { key: val, key2: {gt: 'val2'}, ...}} + * { key: val, key2: {gt: 'val2'}, ...} * ``` *
see [Where filter](http://docs.strongloop.com/display/public/LB/Where+filter). * @param {Object} data Object containing data to replace matching instances, if any. @@ -305,7 +305,7 @@ module.exports = function(registry) { * Return the number of records that match the optional "where" filter. * @param {Object} [where] Optional where filter, like * ``` - * {where: { key: val, key2: {gt: 'val2'}, ...} } + * { key: val, key2: {gt: 'val2'}, ...} * ``` *
See [Where filter](http://docs.strongloop.com/display/LB/Where+filter). * @callback {Function} callback Callback function called with `(err, count)` arguments. Required.