dont set default user languages in api code (already done in db)

This commit is contained in:
Felix Ableitner 2022-08-30 22:36:01 +02:00 committed by Dessalines
parent 095591ef69
commit 3295784ebb

View file

@ -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 { if require_application {
// Create the registration application // Create the registration application
let form = RegistrationApplicationForm { let form = RegistrationApplicationForm {