The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove redundant userId from cron/bounties/notify-partners
Steven Teya7c02fe31a7a
diff --git a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts b/apps/web/app/(ee)/api/bounties/[bountyId]/route.tsindex 25ec7c0995..16b471d239 100644--- a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts+++ b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts@@ -224,7 +224,6 @@ export const PATCH = withWorkspace(url: `${APP_DOMAIN_WITH_NGROK}/api/cron/bounties/notify-partners`,body: {bountyId: updatedBounty.id,- userId: session?.user.id,},notBefore: Math.floor(updatedBounty.startsAt.getTime() / 1000),}),diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.tsindex ce8bd7e262..738476bbdf 100644--- a/apps/web/app/(ee)/api/bounties/route.ts+++ b/apps/web/app/(ee)/api/bounties/route.ts@@ -253,7 +253,6 @@ export const POST = withWorkspace(url: `${APP_DOMAIN_WITH_NGROK}/api/cron/bounties/notify-partners`,body: {bountyId: bounty.id,- userId: session?.user.id,},notBefore: Math.floor(bounty.startsAt.getTime() / 1000),}),diff --git a/apps/web/app/(ee)/api/cron/bounties/notify-partners/route.ts b/apps/web/app/(ee)/api/cron/bounties/notify-partners/route.tsindex 60508de41d..6615e4d2d0 100644--- a/apps/web/app/(ee)/api/cron/bounties/notify-partners/route.ts+++ b/apps/web/app/(ee)/api/cron/bounties/notify-partners/route.ts@@ -15,7 +15,6 @@ export const dynamic = "force-dynamic";const schema = z.object({bountyId: z.string(),- userId: z.string().nullish(),page: z.number().optional().default(0),});@@ -32,7 +31,7 @@ export async function POST(req: Request) {rawBody,});- const { bountyId, userId, page } = schema.parse(JSON.parse(rawBody));+ const { bountyId, page } = schema.parse(JSON.parse(rawBody));// Find bountyconst bounty = await prisma.bounty.findUnique({@@ -172,7 +171,6 @@ export async function POST(req: Request) {url: `${APP_DOMAIN_WITH_NGROK}/api/cron/bounties/notify-partners`,body: {bountyId,- userId,page: page + 1,},});