fix group issue in send_invite (#5321)

This commit is contained in:
Stefan Melmuk 2024-12-31 13:28:19 +01:00 committed by GitHub
parent 08183fc999
commit d9e0d68f20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -907,7 +907,7 @@ async fn send_invite(org_id: &str, data: Json<InviteData>, 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?;
}