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.

code improvements

Pedro Ladeiracd44451f7aff
diff --git a/apps/web/app/api/ai/support-chat/upload/route.ts b/apps/web/app/api/ai/support-chat/upload/route.ts
index ef7c135b52..b3659a4b18 100644
--- a/apps/web/app/api/ai/support-chat/upload/route.ts
+++ b/apps/web/app/api/ai/support-chat/upload/route.ts
@@ -87,7 +87,7 @@ export const POST = withSession(async ({ req, session }) => {
await plain.getCustomerByExternalId({ externalId: user.id });
customer = existingCustomer ?? null;
- customerError = lookupError ?? upsert.error;
+ customerError = lookupError ?? null;
}
if (customerError || !customer) {