Skip to content

Commit df30f6e

Browse files
committed
Bug fix
1 parent 2370f3f commit df30f6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const requestHandlers = {
5151
if (!reports[r.query.report]) return Boom.badRequest('invalid report (100)')
5252

5353
const missingParams = reports[r.query.report].params.filter(e => !r.query[e])
54-
if ( typeof missingParams !== 'undefined' ) {
54+
if ( missingParams.length ) {
5555
return Boom.badRequest(`missing required parameters: ${missingParams.join()}` + ' (101)')
5656
}
5757

0 commit comments

Comments
 (0)