Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: accept user share

Blue Mouse6c0a28cbab48
diff --git a/web/app/api/index.ts b/web/app/api/index.ts
index c17b9188f..d036855e9 100644
--- a/web/app/api/index.ts
+++ b/web/app/api/index.ts
@@ -926,7 +926,7 @@ export const rejectProjectShare = (actionId: string) =>
export const acceptProjectShare = (actionId: string) =>
api
- .post(`/user/share/${actionId}`)
+ .get(`/user/share/${actionId}`)
.then((response) => response.data)
.catch((error) => {
throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message