Merge pull request #105 from r4zzz4k/master

Parse request.where from string into JSON
This commit is contained in:
Fosco Marotto
2016-01-31 21:29:25 -08:00

View File

@@ -33,6 +33,10 @@ function handleFind(req) {
options.redirectClassNameForKey = String(req.body.redirectClassNameForKey);
}
if(typeof req.body.where === 'string') {
req.body.where = JSON.parse(req.body.where);
}
return rest.find(req.config, req.auth,
req.params.className, req.body.where, options)
.then((response) => {