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 route.ts

Kiran K47fee24e637f
diff --git a/apps/web/app/(ee)/api/cron/bounties/create-draft-submissions/route.ts b/apps/web/app/(ee)/api/cron/bounties/create-draft-submissions/route.ts
index 775996b0d7..4122f6ae30 100644
--- a/apps/web/app/(ee)/api/cron/bounties/create-draft-submissions/route.ts
+++ b/apps/web/app/(ee)/api/cron/bounties/create-draft-submissions/route.ts
@@ -162,6 +162,9 @@ export async function POST(req: Request) {
}[condition.attribute];
if (!performanceCount || performanceCount <= 0) {
+ console.log(
+ `Partner ${programEnrollment.partnerId} has no performance count for bounty ${bountyId}.`,
+ );
continue;
}
@@ -172,6 +175,9 @@ export async function POST(req: Request) {
});
if (!canSubmitBounty) {
+ console.log(
+ `Partner ${programEnrollment.partnerId} is not eligible to submit bounty ${bountyId}.`,
+ );
continue;
}