♻️ Re-organize telemetry package

This commit is contained in:
Baptiste Arnaud
2024-02-01 14:19:24 +01:00
parent 3fcb0081e5
commit 92a1d672fd
26 changed files with 102 additions and 206 deletions

View File

@@ -40,7 +40,8 @@ export const canReadTypebots = (
) => ({
id: typeof typebotIds === 'string' ? typebotIds : { in: typebotIds },
workspace:
user.email === env.ADMIN_EMAIL || env.NEXT_PUBLIC_E2E_TEST
env.ADMIN_EMAIL?.some((email) => email === user.email) ||
env.NEXT_PUBLIC_E2E_TEST
? undefined
: {
members: {

View File

@@ -10,7 +10,6 @@ import { router } from '../trpc'
import { analyticsRouter } from '@/features/analytics/api/router'
import { collaboratorsRouter } from '@/features/collaboration/api/router'
import { customDomainsRouter } from '@/features/customDomains/api/router'
import { processTelemetryEvent } from '@/features/telemetry/api/processTelemetryEvent'
import { publicWhatsAppRouter } from '@/features/whatsapp/router'
export const publicRouter = router({
@@ -25,7 +24,6 @@ export const publicRouter = router({
theme: themeRouter,
collaborators: collaboratorsRouter,
customDomains: customDomainsRouter,
processTelemetryEvent,
whatsApp: publicWhatsAppRouter,
})