Skip to content

Commit

Permalink
Fix inverted filter
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Nov 2, 2023
1 parent 4130439 commit 840b37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rfd-model/src/storage/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 840b37f

Please sign in to comment.