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.

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.ts
index 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`
SELECT
b.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.submissionRequirements
ORDER BY ${Prisma.raw(sortColumnsMap[sortBy])} ${Prisma.raw(sortOrder)}
LIMIT ${pageSize} OFFSET ${(page - 1) * pageSize}
- `) satisfies Array<any>;
+ `;
return bounties.map((bounty) => ({
...bounty,