change sort columns

This commit is contained in:
Felix Ableitner 2022-11-18 22:23:34 +01:00
parent 8c0c7e6a8b
commit 80898be774
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ impl LocalUserLanguage {
Box::pin(async move {
let langs = local_user_language
.filter(local_user_id.eq(for_local_user_id))
.order(id)
.order(language_id)
.select(language_id)
.get_results(conn)
.await?;
@ -89,7 +89,7 @@ impl SiteLanguage {
let langs = site_language::table
.filter(site_language::site_id.eq(for_site_id))
.order(site_language::id)
.order(site_language::language_id)
.select(site_language::language_id)
.load(conn)
.await?;
@ -205,7 +205,7 @@ impl CommunityLanguage {
let langs = community_language
.filter(community_id.eq(for_community_id))
.order(id)
.order(language_id)
.select(language_id)
.get_results(conn)
.await?;

View file

@ -9,5 +9,5 @@ export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
# so to load the config we need to traverse to the repo root
export LEMMY_CONFIG_LOCATION=../../config/config.hjson
RUST_BACKTRACE=1 \
cargo test -p lemmy_db_schema --all-features --no-fail-fast
cargo test --workspace --all-features --no-fail-fast
# Add this to do printlns: -- --nocapture