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 K0e9c407df76b
diff --git a/apps/web/app/api/programs/rewardful/campaigns/route.ts b/apps/web/app/api/programs/rewardful/campaigns/route.ts
index ca7ff50653..0bebad20d1 100644
--- a/apps/web/app/api/programs/rewardful/campaigns/route.ts
+++ b/apps/web/app/api/programs/rewardful/campaigns/route.ts
@@ -13,11 +13,6 @@ export const GET = withWorkspace(async ({ workspace }) => {
});
}
- throw new DubApiError({
- code: "forbidden",
- message: "Partners are not enabled for this workspace",
- });
-
const { token } = await rewardfulImporter.getCredentials(workspace.id);
const rewardfulApi = new RewardfulApi({ token });