Allow dao.find() and exists() to take any type for id
This commit is contained in:
parent
24a1c76c59
commit
adf7c49c91
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue