Skip to content

Commit

Permalink
Getting sleepy...
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Dec 13, 2023
1 parent d7a2fec commit 2450e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ func cancelPaypal(ctx context.Context, env *conf.Env, user *keycloak.User) error
return err
}
req.SetBasicAuth(env.PaypalClientID, env.PaypalClientSecret)
req.Header.Set("Content-Type", "application/json")

postResp, err := http.DefaultClient.Do(req)
if err != nil {
return err
}
defer postResp.Body.Close()
postResp.Header.Set("Content-Type", "application/json")

if postResp.StatusCode == 404 {
log.Printf("not canceling paypal subscription because it doesn't exist even after previous check: %s", user.PaypalSubscriptionID)
Expand Down

0 comments on commit 2450e31

Please sign in to comment.