📈(backend) capture an event when a document is left

When a user leave a document, we want to capture an event.
This commit is contained in:
Manuel Raynaud
2026-06-01 17:47:28 +02:00
parent c91c443b08
commit 1ebc8d52a0
3 changed files with 56 additions and 5 deletions
+2
View File
@@ -2602,6 +2602,8 @@ class DocumentViewSet(
)
raise
posthog_capture(PosthogEventName.DOC_LEFT, request.user, {}, document=document)
return drf.response.Response(status=drf.status.HTTP_204_NO_CONTENT)