display info on reject log
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2020-08-22 12:29:18 +02:00
parent 4f1b5fd5ef
commit 8a36273325

View File

@ -16,6 +16,7 @@ module.exports = async (req, res) => {
app_id === 'undefined'
|| isNaN (parseInt (app_id))
) {
console.log('bad request, did not receive app id');
res.status (http.status_bad_request)
.end ();
return;
@ -23,6 +24,7 @@ module.exports = async (req, res) => {
const log = req.body;
if (typeof log !== 'object') {
console.log('bad request, did not receive data in json format');
res.status (http.status_bad_request)
.end ();
return;