actor
Build and Publish / BuildAndDeployArm64 (push) Failing after 6s
Build and Publish / BuildAndDeployAmd64 (push) Failing after 3s

This commit is contained in:
2026-07-01 10:47:28 +02:00
parent b1e99891e9
commit 83986e7a35
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -400,6 +400,8 @@ func (s *CustomerServer) handleDeleteCustomer(w http.ResponseWriter, r *http.Req
// Log audit trail to stdout (GDPR requirement)
fmt.Printf("AUDIT: GDPR right to erasure executed for customer profile id %d\n", id)
s.indexProfileAfterMutation(r.Context(), id)
w.WriteHeader(http.StatusNoContent)
}
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
)
@@ -44,7 +45,7 @@ type customerLookupResponse struct {
// returns the parsed email preferences. Returns nil, nil when the profile
// is not found (unknown email -> allow all).
func (c *ProfilePreferencesClient) fetchPreferences(ctx context.Context, email string) (*emailPreferencesResponse, error) {
url := fmt.Sprintf("%s/by-email/%s", c.baseURL, email)
url := fmt.Sprintf("%s/by-email/%s", c.baseURL, url.PathEscape(email))
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return nil, err