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.

remove redundant complex logic

Steven Teyb5a94659bbbe
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.ts
index 6615e4d2d0..8e570b7137 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
@@ -40,23 +40,7 @@ export async function POST(req: Request) {
},
include: {
groups: true,
- program: {
- include: {
- workspace: {
- select: {
- users: {
- select: {
- userId: true,
- },
- where: {
- role: "owner",
- },
- take: 1,
- },
- },
- },
- },
- },
+ program: true,
},
});