The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix earnings table
Steven Tey893e7554027d
diff --git a/apps/web/app/api/partner-profile/programs/[programId]/earnings/route.ts b/apps/web/app/api/partner-profile/programs/[programId]/earnings/route.tsindex e73921c633..0d5637568b 100644--- a/apps/web/app/api/partner-profile/programs/[programId]/earnings/route.ts+++ b/apps/web/app/api/partner-profile/programs/[programId]/earnings/route.ts@@ -47,6 +47,7 @@ export const GET = withPartnerProfile(programId: program.id,partnerId: partner.id,status,+ type,linkId,customerId,payoutId,diff --git a/apps/web/lib/zod/schemas/partner-profile.ts b/apps/web/lib/zod/schemas/partner-profile.tsindex 7b4b6d60b7..6d6009c51f 100644--- a/apps/web/lib/zod/schemas/partner-profile.ts+++ b/apps/web/lib/zod/schemas/partner-profile.ts@@ -4,17 +4,14 @@ import {} from "@/lib/analytics/constants";import { z } from "zod";import {- CommissionResponseSchema,+ CommissionSchema,getCommissionsCountQuerySchema,getCommissionsQuerySchema,} from "./commissions";import { CustomerEnrichedSchema } from "./customers";import { LinkSchema } from "./links";-export const PartnerEarningsSchema = CommissionResponseSchema.omit({- partner: true,- customer: true,-}).merge(+export const PartnerEarningsSchema = CommissionSchema.merge(z.object({type: z.string(),customer: z