Skip to content

Commit bce6244

Browse files
committed
Merge pull request #105 from r4zzz4k/master
Parse request.where from string into JSON
2 parents 522abdf + 25a0fbe commit bce6244

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes.js

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ function handleFind(req) {
3333
options.redirectClassNameForKey = String(req.body.redirectClassNameForKey);
3434
}
3535

36+
if(typeof req.body.where === 'string') {
37+
req.body.where = JSON.parse(req.body.where);
38+
}
39+
3640
return rest.find(req.config, req.auth,
3741
req.params.className, req.body.where, options)
3842
.then((response) => {

0 commit comments

Comments
 (0)