remove flush method from analytics class

This commit is contained in:
Hongbo Wu
2024-05-13 19:10:14 +08:00
parent 0a96057bda
commit 33e1c4dd00

View File

@ -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(