The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update get-bounties.ts
Kiran Ke502c3d94557
diff --git a/apps/web/lib/api/bounties/get-bounties.ts b/apps/web/lib/api/bounties/get-bounties.tsindex 5decacaf29..fd86e3e937 100644--- a/apps/web/lib/api/bounties/get-bounties.ts+++ b/apps/web/lib/api/bounties/get-bounties.ts@@ -21,7 +21,7 @@ export async function getBounties(filters: BountyFilters) {includeExpandedFields,} = filters;- const bounties = (await prisma.$queryRaw`+ const bounties: any[] = await prisma.$queryRaw`SELECTb.id,b.name,@@ -66,7 +66,7 @@ export async function getBounties(filters: BountyFilters) {GROUP BY b.id, b.name, b.description, b.type, b.startsAt, b.endsAt, b.rewardAmount, b.submissionRequirementsORDER BY ${Prisma.raw(sortColumnsMap[sortBy])} ${Prisma.raw(sortOrder)}LIMIT ${pageSize} OFFSET ${(page - 1) * pageSize}- `) satisfies Array<any>;+ `;return bounties.map((bounty) => ({...bounty,