diff --git a/supabase/functions/weekly-digest/index.ts b/supabase/functions/weekly-digest/index.ts index 29702bf1..56ed581d 100644 --- a/supabase/functions/weekly-digest/index.ts +++ b/supabase/functions/weekly-digest/index.ts @@ -134,7 +134,7 @@ Deno.serve(async (_req: Request) => { .eq('team_id', teamId) .gte('timestamp', weekAgo), supabase.from('ship_logs') - .select('user_id, email') + .select('user_id, version, branch, pr_url') .eq('team_id', teamId) .gte('created_at', weekAgo), supabase.from('session_transcripts') @@ -178,7 +178,7 @@ Deno.serve(async (_req: Request) => { // Ships by person const shipsByPerson = new Map(); for (const log of shipLogs) { - const key = String(log.email || log.user_id || 'unknown'); + const key = String(log.user_id || 'unknown'); shipsByPerson.set(key, (shipsByPerson.get(key) || 0) + 1); }