actor
This commit is contained in:
@@ -400,6 +400,8 @@ func (s *CustomerServer) handleDeleteCustomer(w http.ResponseWriter, r *http.Req
|
|||||||
// Log audit trail to stdout (GDPR requirement)
|
// Log audit trail to stdout (GDPR requirement)
|
||||||
fmt.Printf("AUDIT: GDPR right to erasure executed for customer profile id %d\n", id)
|
fmt.Printf("AUDIT: GDPR right to erasure executed for customer profile id %d\n", id)
|
||||||
|
|
||||||
|
s.indexProfileAfterMutation(r.Context(), id)
|
||||||
|
|
||||||
w.WriteHeader(http.StatusNoContent)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -44,7 +45,7 @@ type customerLookupResponse struct {
|
|||||||
// returns the parsed email preferences. Returns nil, nil when the profile
|
// returns the parsed email preferences. Returns nil, nil when the profile
|
||||||
// is not found (unknown email -> allow all).
|
// is not found (unknown email -> allow all).
|
||||||
func (c *ProfilePreferencesClient) fetchPreferences(ctx context.Context, email string) (*emailPreferencesResponse, error) {
|
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)
|
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user