Remove useless transaction in actor_language.rs

This commit is contained in:
dullbananas 2024-04-07 14:47:56 -07:00 committed by GitHub
parent 705e86eb4c
commit 4cd16d8794
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,10 +43,6 @@ impl LocalUserLanguage {
};
let conn = &mut get_conn(pool).await?;
conn
.build_transaction()
.run(|conn| {
Box::pin(async move {
let langs = local_user_language
.filter(local_user_id.eq(for_local_user_id))
.order(language_id)
@ -54,9 +50,6 @@ impl LocalUserLanguage {
.get_results(conn)
.await?;
convert_read_languages(conn, langs).await
}) as _
})
.await
}
/// Update the user's languages.