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.tsx

Kiran K6eae88347b86
diff --git a/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx b/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx
index 0ce7c45c63..1cc7c76b35 100644
--- a/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx
+++ b/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx
@@ -61,14 +61,6 @@ export const GET = withPartnerProfile(async ({ partner, params }) => {
});
}
- if (payout.status !== "completed") {
- throw new DubApiError({
- code: "unauthorized",
- message:
- "This payout is not completed yet, hence no invoice is generated.",
- });
- }
-
const invoiceMetadata = [
{
label: "Program",