The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename
Kiran K20fb22c4f018
diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.tsindex e8ba6292dd..7cff391e4e 100644--- a/apps/web/app/(ee)/api/bounties/route.ts+++ b/apps/web/app/(ee)/api/bounties/route.ts@@ -30,7 +30,7 @@ export const GET = withWorkspace(async ({ workspace }) => {bounties = bounties.map((bounty) => ({...bounty,- totalSubmissions: bounty._count.submissions,+ submissionsCount: bounty._count.submissions,}));return NextResponse.json(z.array(BountySchema).parse(bounties));diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-card.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-card.tsxindex cd3e6ca0bf..d6d5710880 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-card.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-card.tsx@@ -37,7 +37,7 @@ export function BountyCard({ bounty }: { bounty: BountyProps }) {<div className="text-sm text-neutral-500"><span className="font-medium text-neutral-700">{100}</span> of{" "}<span className="font-medium text-neutral-700">- {bounty.totalSubmissions}+ {bounty.submissionsCount}</span>{" "}partners completed</div>diff --git a/apps/web/lib/zod/schemas/bounties.ts b/apps/web/lib/zod/schemas/bounties.tsindex 5a973be4dc..567e4c84e3 100644--- a/apps/web/lib/zod/schemas/bounties.ts+++ b/apps/web/lib/zod/schemas/bounties.ts@@ -37,7 +37,8 @@ export const BountySchema = z.object({startsAt: z.date(),endsAt: z.date().nullable(),rewardAmount: z.number(),- totalSubmissions: z.number(),+ submissionsCount: z.number(),+ // partnersCount: z.number(),});export const BountySubmissionSchema = z.object({