fix group issue in send_invite

pull/5321/head
Stefan Melmuk 5 days ago
parent ed4ad67e73
commit cd12a61ec9
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09

@ -907,7 +907,7 @@ async fn send_invite(org_id: &str, data: Json<InviteData>, headers: AdminHeaders
new_user.save(&mut conn).await?; new_user.save(&mut conn).await?;
for group in data.groups.iter() { 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?; group_entry.save(&mut conn).await?;
} }

Loading…
Cancel
Save