📈 Update posthog (#1234)

This commit is contained in:
Luke Vella 2024-08-01 10:10:06 +01:00 committed by GitHub
parent 4021c214fa
commit d4b41ab88d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 130 additions and 11 deletions

View file

@ -65,8 +65,8 @@
"next-i18next": "^13.0.3",
"php-serialize": "^4.1.1",
"postcss": "^8.4.31",
"posthog-js": "^1.148.0",
"posthog-node": "^3.6.0",
"posthog-js": "^1.154.0",
"posthog-node": "^4.0.1",
"react-big-calendar": "^1.8.1",
"react-hook-form": "^7.42.1",
"react-hook-form-persist": "^3.0.0",

View file

@ -18,7 +18,7 @@ export const posthog = PostHogClient();
export function posthogApiHandler() {
try {
waitUntil(Promise.all([posthog?.shutdownAsync()]));
waitUntil(Promise.all([posthog?.shutdown()]));
} catch (error) {
console.error("Failed to flush PostHog events:", error);
}