Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

rename

Kiran K20fb22c4f018
diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.ts
index 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.tsx
index 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.ts
index 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({