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 execute-award-bounty-action.ts

Kiran K00bdafa5675b
diff --git a/apps/web/lib/api/workflows/execute-award-bounty-action.ts b/apps/web/lib/api/workflows/execute-award-bounty-action.ts
index 92959888bc..8fa080ad81 100644
--- a/apps/web/lib/api/workflows/execute-award-bounty-action.ts
+++ b/apps/web/lib/api/workflows/execute-award-bounty-action.ts
@@ -51,6 +51,10 @@ export const executeAwardBountyAction = async ({
return;
}
+ if (bounty.archivedAt) {
+ return;
+ }
+
const { groups, submissions } = bounty;
// Check if the partner has already submitted a submission for this bounty