♻️ Re-organize telemetry package
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user