diff --git a/lib/dao.js b/lib/dao.js index 3b9fe70e..d6cb4423 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -249,7 +249,7 @@ DataAccessObject.exists = function exists(id, cb) { // exists ~ remoting attributes DataAccessObject.exists.shared = true; -DataAccessObject.exists.accepts = {arg: 'id', type: 'number'}; +DataAccessObject.exists.accepts = {arg: 'id', type: 'any'}; /** * Find object by id @@ -275,7 +275,7 @@ DataAccessObject.find = function find(id, cb) { // find ~ remoting attributes DataAccessObject.find.accepts = [ - {arg: 'id', type: 'number'} + {arg: 'id', type: 'any'} ]; DataAccessObject.find.shared = true; DataAccessObject.find.http = [