File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
functions/zoom-meeting-webhook-handler Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,18 @@ const handler = async function (event, context) {
100
100
case EVENT_PARTICIPANT_LEFT :
101
101
console . log ( 'CALLING handle-participant-joined-left-background' )
102
102
103
- response = await fetch ( `${ APP_HOST } /handle-participant-joined-left-background` , {
104
- method : 'POST' ,
105
- body : event . body ,
106
- } ) ;
103
+ try {
104
+ response = await fetch ( `${ APP_HOST } /handle-participant-joined-left-background` , {
105
+ method : 'POST' ,
106
+ body : event . body ,
107
+ } ) ;
108
+
109
+ if ( ! response . ok ) {
110
+ console . error ( `Error: ${ response . status } ${ response . statusText } ` ) ;
111
+ }
112
+ } catch ( error ) {
113
+ console . error ( error ) ;
114
+ }
107
115
108
116
console . log ( 'EXITING IMMEDIATELY FROM zoom-meeting-webhook-handler' )
109
117
You can’t perform that action at this time.
0 commit comments