mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-06 23:49:23 +00:00
change sort columns
This commit is contained in:
parent
8c0c7e6a8b
commit
80898be774
|
@ -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?;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue