Skip to content

Commit 1b7361e

Browse files
author
Will Toozs
committed
fixup: api: add fileevent check for no file data
1 parent e24d1e3 commit 1b7361e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/api/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ const api = {
247247
return next(errors.InvalidRequest);
248248
}
249249
// if fields are found but no file, continue
250-
return next(null);
250+
if (!fileEventData) {
251+
return next(null);
252+
}
251253
});
252254

253255
bb.on('error', (err) => {

0 commit comments

Comments
 (0)