File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default class LoggerService extends DependencyAwareClass {
5050 const container = this . getContainer ( ) ;
5151 const event = container . getEvent ( ) ;
5252 const context = container . getContext ( ) ;
53- const isOffline = context . invokedFunctionArn . indexOf ( 'offline' ) !== - 1 ;
53+ const isOffline = ! Object . prototype . hasOwnProperty . call ( context , 'invokedFunctionArn' ) || context . invokedFunctionArn . indexOf ( 'offline' ) !== - 1 ;
5454
5555 // Set raven client context
5656 if ( ravenIsAvailable && isOffline === false ) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default class SQSService extends DependencyAwareClass {
3333 super ( di ) ;
3434 const context = this . getContainer ( ) . getContext ( ) ;
3535 const queues = this . getContainer ( ) . getConfiguration ( 'QUEUES' ) ;
36- const isOffline = context . invokedFunctionArn . indexOf ( 'offline' ) !== - 1 ;
36+ const isOffline = ! Object . prototype . hasOwnProperty . call ( context , 'invokedFunctionArn' ) || context . invokedFunctionArn . indexOf ( 'offline' ) !== - 1 ;
3737
3838 this . queues = { } ;
3939
You can’t perform that action at this time.
0 commit comments