display info on reject log
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4f1b5fd5ef
commit
8a36273325
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user