mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 19:11:47 +00:00
Update actor_language.rs
This commit is contained in:
parent
bb1c918f00
commit
48d9516f9a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue