Skip to content

Commit

Permalink
GitHub #3365 (fix Google.mail.updateLabel: now returns label info in …
Browse files Browse the repository at this point in the history
…status.label)

Jobs:GitHub:3365
  • Loading branch information
yannicktrinh committed Nov 3, 2023
1 parent c2d94c0 commit 794e246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Project/Sources/Classes/GoogleMail.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ Function deleteLabel($inLabelId : Text) : Object

Function updateLabel($inLabelId : Text; $inLabelInfo : Object) : Object

var $response : Object:=Null

Super._throwErrors(False)

Case of
Expand All @@ -546,18 +548,16 @@ Function updateLabel($inLabelId : Text; $inLabelInfo : Object) : Object
Else

var $URL; $userId : Text
var $response : Object
var $headers : Object:={}

$URL:=Super._getURL()
$userId:=(Length(String(This.userId))>0) ? This.userId : "me"
$URL+="users/"+$userId+"/labels/"+$inLabelId

$response:=Super._sendRequestAndWaitResponse("PUT"; $URL; $headers; $inLabelInfo)
This._internals._response:=OB Copy($response)

End case

Super._throwErrors(True)

return This._returnStatus()
return This._returnStatus(($response#Null) ? {label: OB Copy($response)} : Null)

0 comments on commit 794e246

Please sign in to comment.