Update actor_language.rs

This commit is contained in:
dullbananas 2024-04-20 19:03:21 -07:00 committed by GitHub
parent bb1c918f00
commit 48d9516f9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ impl LocalUserLanguage {
.execute(conn); .execute(conn);
let forms = lang_ids let forms = lang_ids
.into_iter() .iter()
.map(|l| LocalUserLanguageForm { .map(|l| LocalUserLanguageForm {
local_user_id: for_local_user_id, local_user_id: for_local_user_id,
language_id: l, language_id: l,
@ -170,7 +170,7 @@ impl SiteLanguage {
.execute(conn); .execute(conn);
let forms = lang_ids let forms = lang_ids
.into_iter() .iter()
.map(|l| SiteLanguageForm { .map(|l| SiteLanguageForm {
site_id: for_site_id, site_id: for_site_id,
language_id: l, language_id: l,
@ -304,7 +304,7 @@ impl CommunityLanguage {
// Delete old languages, not including new languages // Delete old languages, not including new languages
let delete_old = delete(community_language) let delete_old = delete(community_language)
.filter(community_id.eq(for_community_id)) .filter(community_id.eq(for_community_id))
.filter(language_id.ne_all(lang_ids)) .filter(language_id.ne_all(&lang_ids))
.execute(conn); .execute(conn);
// Insert new languages // Insert new languages