add and use new event types (#5482)

* add additional event_types

* use correct event_type when leaving an org

* use correct event type when deleting a user

* also correctly log auth requests

* add correct membership info to event log
This commit is contained in:
Stefan Melmuk authored and GitHub committed 2025-01-28 11:25:53 +01:00
1 parent c0ebe0d982
commit a3dccee243
5 files changed
+48 -6

No files matched your search

+1 -1
View File
@@ -251,7 +251,7 @@ async fn leave_organization(org_id: OrganizationId, headers: Headers, mut conn:
}
log_event(
EventType::OrganizationUserRemoved as i32,
EventType::OrganizationUserLeft as i32,
&member.uuid,
&org_id,
&headers.user.uuid,