Skip to content

Commit 25a0fbe

Browse files
committed
parse request.where from string into JSON
1 parent 522abdf commit 25a0fbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes.js

Lines changed: 4 additions & 0 deletions
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)