Allow dao.find() and exists() to take any type for id

This commit is contained in:
Ritchie Martori 2013-06-05 07:39:26 -07:00
parent 24a1c76c59
commit adf7c49c91
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ DataAccessObject.exists = function exists(id, cb) {
// exists ~ remoting attributes // exists ~ remoting attributes
DataAccessObject.exists.shared = true; DataAccessObject.exists.shared = true;
DataAccessObject.exists.accepts = {arg: 'id', type: 'number'}; DataAccessObject.exists.accepts = {arg: 'id', type: 'any'};
/** /**
* Find object by id * Find object by id
@ -275,7 +275,7 @@ DataAccessObject.find = function find(id, cb) {
// find ~ remoting attributes // find ~ remoting attributes
DataAccessObject.find.accepts = [ DataAccessObject.find.accepts = [
{arg: 'id', type: 'number'} {arg: 'id', type: 'any'}
]; ];
DataAccessObject.find.shared = true; DataAccessObject.find.shared = true;
DataAccessObject.find.http = [ DataAccessObject.find.http = [