From d74f6cba987658b2dc2277d4d94b50f158d530fd Mon Sep 17 00:00:00 2001 From: abetomo Date: Wed, 10 May 2017 11:41:00 +0900 Subject: [PATCH 1/2] Fix handler to current style --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 956d31b9..57756115 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ // For development/testing purposes -exports.handler = function( event, context ) { +exports.handler = function(event, context, callback) { console.log( "Running index.handler" ); console.log( "=================================="); console.log( "event", event ); console.log( "=================================="); console.log( "Stopping index.handler" ); - context.done( ); + callback(null); }; From 31431779c487209bc3b47cb60f335824585595d8 Mon Sep 17 00:00:00 2001 From: abetomo Date: Wed, 10 May 2017 11:42:45 +0900 Subject: [PATCH 2/2] Fix to unify console.log argument to `lib/main.js` style --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 57756115..c849218c 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ // For development/testing purposes exports.handler = function(event, context, callback) { - console.log( "Running index.handler" ); - console.log( "=================================="); - console.log( "event", event ); - console.log( "=================================="); - console.log( "Stopping index.handler" ); + console.log('Running index.handler'); + console.log('=================================='); + console.log('event', event); + console.log('=================================='); + console.log('Stopping index.handler'); callback(null); };