aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-github-lambda/lambda_function.py.in
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-10-14 16:27:49 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-10-14 16:27:49 +0200
commitcd0ccee8e6ab3155b4c639b40cc4a9b232c8419c (patch)
tree4c0df449faa09ff731b059367aa82cd4cedbfb5c /src/blogc-github-lambda/lambda_function.py.in
parent216b814b4f2ade8f8a044a9e67ed31499d0d3be4 (diff)
downloadblogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.tar.gz
blogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.tar.bz2
blogc-cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c.zip
github-lambda: api-gateway handler expects event, not body
Diffstat (limited to 'src/blogc-github-lambda/lambda_function.py.in')
-rw-r--r--src/blogc-github-lambda/lambda_function.py.in2
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)