DAO.prototype.exists should return 'boolean' type.

Signed-off-by: Samuel Reed <samuel.trace.reed@gmail.com>
This commit is contained in:
Samuel Reed 2014-07-04 16:40:08 -05:00
parent bf17304558
commit b66183f7dc
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ setRemoting(DataAccessObject.exists, {
description: 'Check whether a model instance exists in the data source',
accepts: {arg: 'id', type: 'any', description: 'Model id', required: true,
http: {source: 'path'}},
returns: {arg: 'exists', type: 'any'},
returns: {arg: 'exists', type: 'boolean'},
http: {verb: 'get', path: '/:id/exists'}
});