From fa156626ea6feedb78def23d9bd8cf1cdbe80585 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Sun, 22 Dec 2024 21:48:25 +0100 Subject: [PATCH] fix group issue in send_invite --- src/api/core/organizations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index f315853699..ce9b7921d5 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -907,7 +907,7 @@ async fn send_invite(org_id: &str, data: Json, headers: AdminHeaders new_user.save(&mut conn).await?; for group in data.groups.iter() { - let mut group_entry = GroupUser::new(String::from(group), user.uuid.clone()); + let mut group_entry = GroupUser::new(String::from(group), new_user.uuid.clone()); group_entry.save(&mut conn).await?; }