From 22d869730da64737587b9430fd733215d22315e4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 8 Dec 2024 08:42:27 -0500 Subject: [PATCH] Update crates/db_views/src/report_combined_view.rs Co-authored-by: dullbananas --- crates/db_views/src/report_combined_view.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/db_views/src/report_combined_view.rs b/crates/db_views/src/report_combined_view.rs index 69f4e825d..f09b041f1 100644 --- a/crates/db_views/src/report_combined_view.rs +++ b/crates/db_views/src/report_combined_view.rs @@ -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