From 65d2c8f18eaf4ed478a685da94aa9f4496a982a5 Mon Sep 17 00:00:00 2001 From: rtufisi <160157925+rtufisi@users.noreply.github.com> Date: Tue, 10 Dec 2024 06:37:12 +0200 Subject: [PATCH] #279 Fix events generation (#284) --- .../phasetwo/service/auth/OrgAddUserAuthenticatorFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/phasetwo/service/auth/OrgAddUserAuthenticatorFactory.java b/src/main/java/io/phasetwo/service/auth/OrgAddUserAuthenticatorFactory.java index 7c5e4d0..5c1bf46 100644 --- a/src/main/java/io/phasetwo/service/auth/OrgAddUserAuthenticatorFactory.java +++ b/src/main/java/io/phasetwo/service/auth/OrgAddUserAuthenticatorFactory.java @@ -103,6 +103,7 @@ private static void handleOrganizationMembership( org.grantMembership(context.getUser()); context .getEvent() + .clone() .user(context.getUser()) .detail("joined_organization", org.getId()) .success(); @@ -117,6 +118,7 @@ private static void handleOrganizationMembership( org.grantMembership(context.getUser()); context .getEvent() + .clone() .user(context.getUser()) .detail("joined_organization", org.getId()) .success();