From 43a5398792d96f290ca35405ee0afb7fec1403c8 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 23 Aug 2013 14:08:47 -0700 Subject: [PATCH] Fix the remote method descriptions --- lib/dao.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dao.js b/lib/dao.js index e93a58e9..645662c5 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -449,7 +449,7 @@ DataAccessObject.find = function find(params, cb) { // all ~ remoting attributes setRemoting(DataAccessObject.find, { - description: 'Find all instances of the model by filter from the data source', + description: 'Find all instances of the model matched by filter from the data source', accepts: {arg: 'filter', type: 'object'}, returns: {arg: 'data', type: 'array', root: true}, http: {verb: 'get', path: '/'} @@ -476,7 +476,7 @@ DataAccessObject.findOne = function findOne(params, cb) { }; setRemoting(DataAccessObject.findOne, { - description: 'Find first instance of the model by filter from the data source', + description: 'Find first instance of the model matched by filter from the data source', accepts: {arg: 'filter', type: 'object'}, returns: {arg: 'data', type: 'object', root: true}, http: {verb: 'get', path: '/findOne'} @@ -553,7 +553,7 @@ DataAccessObject.count = function (where, cb) { // count ~ remoting attributes setRemoting(DataAccessObject.count, { - description: 'Count instances of the model by the where condition', + description: 'Count instances of the model matched by where from the data source', accepts: {arg: 'where', type: 'object'}, returns: {arg: 'count', type: 'number'}, http: {verb: 'get', path: '/count'}