Disable posthog

This commit is contained in:
Jackson Harper
2024-10-31 11:56:27 +08:00
parent c5343b1252
commit 09fad9764a

View File

@ -21,18 +21,17 @@ class PostHogClient implements AnalyticClient {
}
capture({ distinctId, event, properties }: AnalyticEvent) {
// get client from request context
const client = httpContext.get<string>('client') || 'other'
this.client.capture({
distinctId,
event,
properties: {
...properties,
client,
env: env.server.apiEnv,
},
})
// // get client from request context
// const client = httpContext.get<string>('client') || 'other'
// this.client.capture({
// distinctId,
// event,
// properties: {
// ...properties,
// client,
// env: env.server.apiEnv,
// },
// })
}
async shutdownAsync() {