File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -183,16 +183,24 @@ Function _insertEvent($inParameters : Object; $inEvent : Object) : Object // Fo
183183 var $params : Object:= {eventId: $response .id ; calendarId: String ($inParameters .calendarId )}
184184 var $attachment : Object
185185
186+ $response .attachments := []
186187 For each ($attachment; $attachments)
187188
188- var $status : Object:= This ._insertAttachment ($params ; $attachment )
189- If ($status .success = False)
190- return This ._returnStatus ($status )
189+ var $result : Object:= This ._insertAttachment ($params ; $attachment )
190+ If ($result .success )
191+ Try
192+ OB REMOVE ($result ; "success" )
193+ OB REMOVE ($result ; "errors" )
194+ OB REMOVE ($result ; "statusText" )
195+ End try
196+ $response .attachments .push (This ._cleanGraphObject ($result ))
197+ Else
198+ return This ._returnStatus ($result )
191199 End if
192200 End for each
193201 End if
194202
195- return This ._returnStatus ($response )
203+ return This ._returnStatus (This . _cleanGraphObject ( $response ) )
196204
197205
198206 // Mark: - [Public]
You can’t perform that action at this time.
0 commit comments