From 840b37f5246037b495d043fc7bcef2c2bcb4280e Mon Sep 17 00:00:00 2001 From: augustuswm Date: Thu, 2 Nov 2023 12:25:10 -0500 Subject: [PATCH] Fix inverted filter --- rfd-model/src/storage/postgres.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfd-model/src/storage/postgres.rs b/rfd-model/src/storage/postgres.rs index e547478c..0eb04d8b 100644 --- a/rfd-model/src/storage/postgres.rs +++ b/rfd-model/src/storage/postgres.rs @@ -451,9 +451,9 @@ impl JobStore for PostgresStore { if let Some(started) = started { if started { - query = query.filter(job::started_at.is_null()); - } else { query = query.filter(job::started_at.is_not_null()); + } else { + query = query.filter(job::started_at.is_null()); } }