Skip to content

Commit

Permalink
Merge pull request parse-community#105 from r4zzz4k/master
Browse files Browse the repository at this point in the history
Parse request.where from string into JSON
  • Loading branch information
gfosco committed Feb 1, 2016
2 parents 522abdf + 25a0fbe commit bce6244
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bce6244

Please sign in to comment.