ensuring req.body
This commit is contained in:
parent
b618691af9
commit
6768baa0ae
@ -12,5 +12,5 @@ function notBatchApiQuery(req) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function batchApiQuery(req) {
|
function batchApiQuery(req) {
|
||||||
return req.body.query;
|
return req.body && req.body.query;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user