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 K9fa8673319f1
diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.ts
index 9fbe4859b5..d183631a67 100644
--- a/apps/web/app/(ee)/api/bounties/route.ts
+++ b/apps/web/app/(ee)/api/bounties/route.ts
@@ -237,7 +237,7 @@ export const POST = withWorkspace(
performanceCondition: bounty.workflow?.triggerConditions?.[0],
});
- const shouldCreateSubmissions =
+ const shouldScheduleDraftSubmissions =
bounty.type === "performance" && !currentStatsOnly;
waitUntil(
@@ -271,7 +271,7 @@ export const POST = withWorkspace(
notBefore: Math.floor(bounty.startsAt.getTime() / 1000),
}),
- shouldCreateSubmissions &&
+ shouldScheduleDraftSubmissions &&
qstash.publishJSON({
url: `${APP_DOMAIN_WITH_NGROK}/api/cron/bounties/create-draft-submissions`,
body: {