diff --git a/apps/web/app/(ee)/api/cron/partners/merge-accounts/route.ts b/apps/web/app/(ee)/api/cron/partners/merge-accounts/route.ts index e3d9417e355..b64ff737343 100644 --- a/apps/web/app/(ee)/api/cron/partners/merge-accounts/route.ts +++ b/apps/web/app/(ee)/api/cron/partners/merge-accounts/route.ts @@ -244,7 +244,6 @@ export async function POST(req: Request) { syncTotalCommissions({ partnerId: targetPartnerId, programId, - mode: "direct", }), ), ]); diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts index d13aea76d36..39011e883eb 100644 --- a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts +++ b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts @@ -134,45 +134,43 @@ export const POST = withAxiom(async (req: Request) => { response: result.response, }; - waitUntil( - (async () => { - // if workspaceId is returned as undefined - // AND the response does not contain "Workspace not found" (indicating the workspace doesn't exist) - // we try to find the workspace ID from the Stripe account ID - if ( - !result.workspaceId && - !result.response.startsWith("Workspace not found") && - event.account - ) { - const stripeWebhookWorkspace = await prisma.project.findUnique({ - where: { - stripeConnectId: event.account, - }, - select: { - id: true, - }, - }); - if (stripeWebhookWorkspace) { - // if workspace exists, we set the workspace ID - result.workspaceId = stripeWebhookWorkspace.id; - } - } + // if workspaceId is returned as undefined + // AND the response does not contain "Workspace not found" (indicating the workspace doesn't exist) + // we try to find the workspace ID from the Stripe account ID + if ( + !result.workspaceId && + !result.response.startsWith("Workspace not found") && + event.account + ) { + const stripeWebhookWorkspace = await prisma.project.findUnique({ + where: { + stripeConnectId: event.account, + }, + select: { + id: true, + }, + }); + if (stripeWebhookWorkspace) { + // if workspace exists, we set the workspace ID + result.workspaceId = stripeWebhookWorkspace.id; + } + } - // if workspace ID exists, we capture the webhook log - if (result.workspaceId) { - await captureWebhookLog({ - workspaceId: result.workspaceId, - method: req.method, - path: "/stripe/integration/webhook", - statusCode: 200, - duration: Date.now() - startTime, - requestBody: event, - responseBody, - userAgent: req.headers.get("user-agent"), - }); - } - })(), - ); + // if workspace ID exists, we capture the webhook log + if (result.workspaceId) { + waitUntil( + captureWebhookLog({ + workspaceId: result.workspaceId, + method: req.method, + path: "/stripe/integration/webhook", + statusCode: 200, + duration: Date.now() - startTime, + requestBody: event, + responseBody, + userAgent: req.headers.get("user-agent"), + }), + ); + } console.log(`[${event.type}]: ${result.response}`); diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx index ec0d571b1c0..a5f0e3cbe6b 100644 --- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx +++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx @@ -48,10 +48,14 @@ export default function PartnerOnboardingLayout({ ))} -
-
-
- +
+
+
+
Partners @@ -60,14 +64,23 @@ export default function PartnerOnboardingLayout({
-
{children}
+
+
{children}
+
+ +
+ +
{/* Empty div to center main content */} -
+
+
+ +
+
- ); } diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx index 26228afd882..254b59547d9 100644 --- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx +++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx @@ -148,7 +148,7 @@ export function OnboardingForm({ render={({ field }) => (
-

- Square image recommended, up to 2 MB. +

+ Visible to programs and helps with approvals

-

- Adding an image can improve your approval rates. +

+ Max 2 MB

@@ -218,7 +218,7 @@ export function OnboardingForm({