diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-10-14 16:27:49 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-10-14 16:27:49 +0200 |
commit | cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c (patch) | |
tree | 4c0df449faa09ff731b059367aa82cd4cedbfb5c | |
parent | 216b814b4f2ade8f8a044a9e67ed31499d0d3be4 (diff) | |
download | blogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.tar.gz blogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.tar.bz2 blogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.zip |
github-lambda: api-gateway handler expects event, not body
-rw-r--r-- | src/blogc-github-lambda/lambda_function.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc-github-lambda/lambda_function.py.in b/src/blogc-github-lambda/lambda_function.py.in index 2883eff..8c55402 100644 --- a/src/blogc-github-lambda/lambda_function.py.in +++ b/src/blogc-github-lambda/lambda_function.py.in @@ -239,4 +239,4 @@ def lambda_handler(event, context): if 'Sns' in record: blogc_handler(record['Sns']['Message']) elif 'body' in event: # api-gateway - return api_gateway_handler(event['body']) + return api_gateway_handler(event) |