remove flush method from analytics class
This commit is contained in:
@ -7,7 +7,6 @@ interface AnalyticEvent {
|
||||
|
||||
interface AnalyticClient {
|
||||
capture: (userIds: string[], event: AnalyticEvent) => void
|
||||
shutdownAsync?: () => Promise<void>
|
||||
}
|
||||
|
||||
class PostHogClient implements AnalyticClient {
|
||||
@ -35,10 +34,6 @@ class PostHogClient implements AnalyticClient {
|
||||
|
||||
console.log('analytics', { userIds, result, properties })
|
||||
}
|
||||
|
||||
async shutdownAsync() {
|
||||
return this.client.shutdownAsync()
|
||||
}
|
||||
}
|
||||
|
||||
export const analytics = new PostHogClient(
|
||||
|
||||
Reference in New Issue
Block a user