Skip to content

Commit

Permalink
Merge pull request #714 from dherault/fix-event.isOffline-bug
Browse files Browse the repository at this point in the history
Fix event.isOffine bug
  • Loading branch information
dherault committed Jun 20, 2019
2 parents 5b23ee0 + 8bd5d0e commit c14a1af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Expand Up @@ -704,7 +704,9 @@ class Offline {
event = createLambdaProxyContext(request, this.options, this.velocityContextOptions.stageVariables);
}

event.isOffline = true;
if (event && typeof event === 'object') {
event.isOffline = true;
}

if (this.service.custom && this.service.custom.stageVariables) {
event.stageVariables = this.service.custom.stageVariables;
Expand Down

0 comments on commit c14a1af

Please sign in to comment.