Skip to content

Commit 79007dd

Browse files
abetomoDeviaVir
authored andcommitted
Fix indexjs current style (motdotla#268)
* Fix handler to current style * Fix to unify console.log argument to `lib/main.js` style
1 parent 73ea4ba commit 79007dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// For development/testing purposes
2-
exports.handler = function( event, context ) {
3-
console.log( "Running index.handler" );
4-
console.log( "==================================");
5-
console.log( "event", event );
6-
console.log( "==================================");
7-
console.log( "Stopping index.handler" );
8-
context.done( );
2+
exports.handler = function(event, context, callback) {
3+
console.log('Running index.handler');
4+
console.log('==================================');
5+
console.log('event', event);
6+
console.log('==================================');
7+
console.log('Stopping index.handler');
8+
callback(null);
99
};

0 commit comments

Comments
 (0)