From 78d25cf991744ee5527d9b532b625f9ebf17b649 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 23 Oct 2024 16:52:44 +0200 Subject: [PATCH] Make the primary email hash available 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. --- src/app/functions/server/sanitize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/functions/server/sanitize.ts b/src/app/functions/server/sanitize.ts index 3fde76fd568..f83d5ba7c24 100644 --- a/src/app/functions/server/sanitize.ts +++ b/src/app/functions/server/sanitize.ts @@ -48,6 +48,7 @@ export type SanitizedSubscriberRow = SanitizationMarker & | "id" | "primary_email" | "primary_verified" + | "primary_sha1" | "created_at" | "updated_at" | "fx_newsletter" @@ -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,