Skip to content

Commit

Permalink
Fix bug on empty event
Browse files Browse the repository at this point in the history
  • Loading branch information
dherault committed Jun 10, 2019
1 parent 1335189 commit dad83ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Expand Up @@ -436,6 +436,10 @@ class Offline {
debugLog(funName, 'runtime', serviceRuntime);
this.serverlessLog(`Routes for ${funName}:`);

if (!fun.events) {
fun.events = [];
}

// Add proxy for lamda invoke
fun.events.push({
http: {
Expand Down

0 comments on commit dad83ab

Please sign in to comment.