Skip to content

Commit

Permalink
Bugfix for no queryStringParameters, fixes #738
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jul 8, 2019
1 parent 038d776 commit a9ec9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiGatewayWebSocket.js
Expand Up @@ -196,7 +196,7 @@ module.exports = class ApiGatewayWebSocket {
this.options,
);

if (Object.keys(queryStringParameters).length > 0) {
if (Object.keys(queryStringParameters || {}).length > 0) {
event = { queryStringParameters, ...event };
}

Expand Down

0 comments on commit a9ec9d2

Please sign in to comment.