minor backend fixes

This commit is contained in:
Ruben Fiszel
2023-03-27 22:57:29 +02:00
parent 1d63877a69
commit e40f16c969
4 changed files with 40 additions and 37 deletions
+10
View File
@@ -1005,6 +1005,16 @@ async fn add_user(
.execute(&mut tx)
.await?;
sqlx::query_as!(
Group,
"INSERT INTO usr_to_group (workspace_id, usr, group_) VALUES ($1, $2, $3) ON CONFLICT DO NOTHING",
&w_id,
nu.username,
"all",
)
.execute(&mut tx)
.await?;
tx.commit().await?;
if let Some(new_user_webhook) = NEW_USER_WEBHOOK.clone() {