From cd0ccee8e6ab3155b4c639b40cc4a9b232c8419c Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 14 Oct 2018 16:27:49 +0200 Subject: github-lambda: api-gateway handler expects event, not body --- src/blogc-github-lambda/lambda_function.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-18-g5258