From b66183f7dc3ae415e6fb733945da5a0e39c17c07 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Fri, 4 Jul 2014 16:40:08 -0500 Subject: [PATCH] DAO.prototype.exists should return 'boolean' type. Signed-off-by: Samuel Reed --- lib/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dao.js b/lib/dao.js index bc04d80b..50b9eef9 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -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'} });