Update crates/db_views_moderator/src/modlog_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
Dessalines 2025-01-10 12:06:05 -05:00 committed by GitHub
parent d09616cbc9
commit b1d4e9c7fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,8 +373,10 @@ impl ModlogCombinedQuery {
query = query.after(page_after);
}
// Tie breaker
query = query.then_desc(key::published).then_desc(key::id);
query = query
.then_desc(key::published)
// Tie breaker
.then_desc(key::id);
let res = query.load::<ModlogCombinedViewInternal>(conn).await?;