Skip to content

Commit

Permalink
Merge pull request #283 from pulumi/ellismg/fix-ts-issue
Browse files Browse the repository at this point in the history
Fix TypeScript compilation error in aws-ts-apigateway
  • Loading branch information
ellismg committed Apr 22, 2019
2 parents 62e0f5d + 61b72a4 commit 442755e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-ts-slackbot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const endpoint = new awsx.apigateway.API("mentionbot", {
throw new Error("mentionbot:verificationToken was not provided")
}

if (!event.isBase64Encoded) {
if (!event.isBase64Encoded || event.body == null) {
console.log("Unexpected content received");
console.log(JSON.stringify(event));
}
Expand Down

0 comments on commit 442755e

Please sign in to comment.