From 8e3ed28ba90bb21a1d75d8c209d4cda9619c40fa Mon Sep 17 00:00:00 2001 From: alannnc Date: Fri, 7 Apr 2023 00:13:22 -0700 Subject: [PATCH] Switch order from user/slug (#8134) --- packages/features/insights/server/trpc-router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/insights/server/trpc-router.ts b/packages/features/insights/server/trpc-router.ts index 0ba120dc75..6a62434647 100644 --- a/packages/features/insights/server/trpc-router.ts +++ b/packages/features/insights/server/trpc-router.ts @@ -507,7 +507,7 @@ export const insightsRouter = router({ let eventSlug = ""; if (eventTypeSelected.userId) { - eventSlug = `${eventTypeSelected?.slug}/${eventTypeSelected?.users[0]?.username}`; + eventSlug = `${eventTypeSelected?.users[0]?.username}/${eventTypeSelected?.slug}`; } if (eventTypeSelected?.team && eventTypeSelected?.team?.slug) { eventSlug = `${eventTypeSelected.team.slug}/${eventTypeSelected.slug}`;