Skip to content

Commit

Permalink
fix(go-sdk): backport start time variable read fix from go-sdk (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Feb 5, 2025
2 parents adccb71 + ee4c8f7 commit a17d052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/clients/go/template/client/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -1220,9 +1220,12 @@ func (client *{{appShortName}}Client) ReadChangesExecute(request SdkClientReadCh
req = req.ContinuationToken(*continuationToken)
}
requestBody := request.GetBody()
if requestBody != nil {
if requestBody != nil && requestBody.Type != "" {
req = req.Type_(requestBody.Type)
}
if requestBody != nil && !requestBody.StartTime.IsZero() {
req = req.StartTime(requestBody.StartTime)
}

data, _, err := req.Execute()
if err != nil {
Expand Down

0 comments on commit a17d052

Please sign in to comment.