mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-22 09:35:08 +02:00
📈(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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user