Update crates/db_views/src/report_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
Dessalines 2024-12-08 08:42:27 -05:00 committed by GitHub
parent dc0ec159df
commit 22d869730d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -306,9 +306,9 @@ impl ReportCombinedQuery {
query = query
.filter(
post_report::resolved
.eq(false)
.or(comment_report::resolved.eq(false))
.or(private_message_report::resolved.eq(false)),
.or(comment_report::resolved)
.or(private_message_report::resolved).is_distinct_from(true),
)
// TODO: when a `then_asc` method is added, use it here, make the id sort direction match,
// and remove the separate index; unless additional columns are added to this sort