Skip to content

Commit

Permalink
Make the primary email hash available
Browse files Browse the repository at this point in the history
It can be trivially calculated by anyone who has access to the
email, so there's no need to keep it secret from the user, and the
qa-customs page needs access to it.
  • Loading branch information
Vinnl committed Oct 30, 2024
1 parent ce95d67 commit 78d25cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/functions/server/sanitize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export type SanitizedSubscriberRow = SanitizationMarker &
| "id"
| "primary_email"
| "primary_verified"
| "primary_sha1"
| "created_at"
| "updated_at"
| "fx_newsletter"
Expand Down Expand Up @@ -77,6 +78,7 @@ export function sanitizeSubscriberRow(
id: subscriber.id,
primary_email: subscriber.primary_email,
primary_verified: subscriber.primary_verified,
primary_sha1: subscriber.primary_sha1,
created_at: subscriber.created_at,
updated_at: subscriber.updated_at,
fx_newsletter: subscriber.fx_newsletter,
Expand Down

0 comments on commit 78d25cf

Please sign in to comment.