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.

add transformCustomer to activity route

Steven Teyd2ac8c77c2ee
diff --git a/apps/web/app/api/customers/[id]/activity/route.ts b/apps/web/app/api/customers/[id]/activity/route.ts
index 1fc7ff0585..0cbe7195c4 100644
--- a/apps/web/app/api/customers/[id]/activity/route.ts
+++ b/apps/web/app/api/customers/[id]/activity/route.ts
@@ -1,5 +1,6 @@
import { getEvents } from "@/lib/analytics/get-events";
import { getCustomerOrThrow } from "@/lib/api/customers/get-customer-or-throw";
+import { transformCustomer } from "@/lib/api/customers/transform-customer";
import { withWorkspace } from "@/lib/auth";
import { verifyFolderAccess } from "@/lib/folder/permissions";
import { CustomerActivity, SaleEvent } from "@/lib/types";
@@ -124,7 +125,7 @@ export const GET = withWorkspace(async ({ workspace, params, session }) => {
ltv,
timeToLead,
timeToSale,
- customer,
+ customer: transformCustomer(customer),
activity,
link,
}),