From b4c487b191c9b58834dd1a37c3682acf5e38443a Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 10 Apr 2015 11:03:55 -0700 Subject: [PATCH] Fix the typo --- lib/persisted-model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 53f8cc62..12bb8584 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -585,7 +585,7 @@ module.exports = function(registry) { setRemoting(PersistedModel, 'find', { description: 'Find all instances of the model matched by filter from the data source', accessType: 'READ', - accepts: {arg: 'filter', type: 'object', description: 'Filter defining fields, where, orderBy, offset, and limit'}, + accepts: {arg: 'filter', type: 'object', description: 'Filter defining fields, where, order, offset, and limit'}, returns: {arg: 'data', type: [typeName], root: true}, http: {verb: 'get', path: '/'} }); @@ -593,7 +593,7 @@ module.exports = function(registry) { setRemoting(PersistedModel, 'findOne', { description: 'Find first instance of the model matched by filter from the data source', accessType: 'READ', - accepts: {arg: 'filter', type: 'object', description: 'Filter defining fields, where, orderBy, offset, and limit'}, + accepts: {arg: 'filter', type: 'object', description: 'Filter defining fields, where, order, offset, and limit'}, returns: {arg: 'data', type: typeName, root: true}, http: {verb: 'get', path: '/findOne'}, rest: {after: convertNullToNotFoundError}