The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix partner activity logs failing Zod parse on missing user
Rafi958537815701
diff --git a/apps/web/app/(ee)/api/partner-profile/programs/[programId]/activity-logs/route.ts b/apps/web/app/(ee)/api/partner-profile/programs/[programId]/activity-logs/route.tsindex df3e111faf..2d91df5996 100644--- a/apps/web/app/(ee)/api/partner-profile/programs/[programId]/activity-logs/route.ts+++ b/apps/web/app/(ee)/api/partner-profile/programs/[programId]/activity-logs/route.ts@@ -60,6 +60,11 @@ export const GET = withPartnerProfile(take: 100,});- return NextResponse.json(z.array(activityLogSchema).parse(activityLogs));+ // Hide the workspace user who made each change from the partner+ return NextResponse.json(+ z+ .array(activityLogSchema)+ .parse(activityLogs.map((log) => ({ ...log, user: null }))),+ );},);