The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
partners -> partnersCount
Tim Wilsonaa4fb502f455
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 8cde7f8d80..10fd75729f 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@@ -50,7 +50,9 @@ export function BountyCard({ bounty }: { bounty: BountyExtendedProps }) {<Users className="size-3.5" /><div><span className="text-content-default">N</span> of{" "}- <span className="text-content-default">{bounty.partners}</span>{" "}+ <span className="text-content-default">+ {bounty.partnersCount}+ </span>{" "}partners completed</div></div>diff --git a/apps/web/lib/api/bounties/get-bounties.ts b/apps/web/lib/api/bounties/get-bounties.tsindex 5cf2a9c696..598c60e033 100644--- a/apps/web/lib/api/bounties/get-bounties.ts+++ b/apps/web/lib/api/bounties/get-bounties.ts@@ -33,10 +33,10 @@ export async function getBounties(filters: BountyFilters) {${includeExpandedFields? Prisma.sql`- COUNT(DISTINCT pe.partnerId) as partners+ COUNT(DISTINCT pe.partnerId) as partnersCount`: Prisma.sql`- 0 as partners+ 0 as partnersCount`}FROM Bounty b@@ -56,6 +56,6 @@ export async function getBounties(filters: BountyFilters) {return bounties.map((bounty) => ({...bounty,- partners: Number(bounty.partners),+ partnersCount: Number(bounty.partnersCount),}));}diff --git a/apps/web/lib/api/bounties/get-bounty-or-throw.ts b/apps/web/lib/api/bounties/get-bounty-or-throw.tsindex 9797674f2a..a5388ad9cf 100644--- a/apps/web/lib/api/bounties/get-bounty-or-throw.ts+++ b/apps/web/lib/api/bounties/get-bounty-or-throw.ts@@ -23,10 +23,10 @@ export const getBountyOrThrow = async ({${includeExpandedFields? Prisma.sql`- COUNT(DISTINCT pe.partnerId) as partners+ COUNT(DISTINCT pe.partnerId) as partnersCount`: Prisma.sql`- 0 as partners+ 0 as partnersCount`}FROM Bounty b@@ -53,6 +53,6 @@ export const getBountyOrThrow = async ({return {...bounties[0],- partners: Number(bounties[0].partners),+ partnersCount: Number(bounties[0].partnersCount),};};diff --git a/apps/web/lib/zod/schemas/bounties.ts b/apps/web/lib/zod/schemas/bounties.tsindex 444076c450..2b727db40e 100644--- a/apps/web/lib/zod/schemas/bounties.ts+++ b/apps/web/lib/zod/schemas/bounties.ts@@ -42,7 +42,7 @@ export const BountySchema = z.object({});export const BountySchemaExtended = BountySchema.extend({- partners: z.number().default(0),+ partnersCount: z.number().default(0),});export const BountySubmissionSchema = z.object({