Skip to content

Commit

Permalink
Fix jsdocs for methods with where argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Feng committed Jul 28, 2015
1 parent 9422175 commit 0f9dd93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/persisted-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}`
* <br/>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.
Expand Down Expand Up @@ -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'}, ...}
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
*
Expand Down Expand Up @@ -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'}, ...}
* ```
* <br/>see [Where filter](http://docs.strongloop.com/display/public/LB/Where+filter).
* @param {Object} data Object containing data to replace matching instances, if any.
Expand Down Expand Up @@ -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'}, ...}
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
* @callback {Function} callback Callback function called with `(err, count)` arguments. Required.
Expand Down

0 comments on commit 0f9dd93

Please sign in to comment.