Skip to content

Commit

Permalink
🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
BarnabyShearer committed May 3, 2023
1 parent 30045c4 commit 181b02a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (a *SlackApp) Request(ctx context.Context, method string, resultJson interf
return errors.New(errorJson.Error)
}
if resultJson != nil {
err = json.Unmarshal(resultBody, &resultJson)
err = json.Unmarshal(resultBody, resultJson)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/refresh_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (r refreshResource) Update(ctx context.Context, req resource.UpdateRequest,

client := client.New()
var resultJson refreshResponse
err := client.Request(ctx, "tooling.tokens.rotate?refresh_token="+state.RefreshToken.ValueString(), resultJson)
err := client.Request(ctx, "tooling.tokens.rotate?refresh_token="+state.RefreshToken.ValueString(), &resultJson)
if err != nil {
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to rotate token, got error: %s", err))
return
Expand Down

0 comments on commit 181b02a

Please sign in to comment.