From 3295784ebb9e067d968a275a882591e506e61b3c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 30 Aug 2022 22:36:01 +0200 Subject: [PATCH] dont set default user languages in api code (already done in db) --- crates/api_crud/src/user/create.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index 9fc4fe5b1..3f867a9e4 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -168,13 +168,6 @@ impl PerformCrud for Register { } }; - // Update the users languages to all by default - let local_user_id = inserted_local_user.id; - blocking(context.pool(), move |conn| { - LocalUserLanguage::update_user_languages(conn, None, local_user_id) - }) - .await??; - if require_application { // Create the registration application let form = RegistrationApplicationForm {