ensuring req.body

This commit is contained in:
Simon Martín 2019-02-26 17:11:11 +01:00
parent b618691af9
commit 6768baa0ae

View File

@ -12,5 +12,5 @@ function notBatchApiQuery(req) {
}
function batchApiQuery(req) {
return req.body.query;
return req.body && req.body.query;
}