From 3aba0ed2508debdc78a6631e49b074a97635f21d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 24 Feb 2026 09:03:52 +0100 Subject: [PATCH] fix: use correct column name completed_at instead of ended_at in count_completed_jobs_detail (#8066) Co-authored-by: Claude Opus 4.5 --- backend/windmill-api/src/jobs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-api/src/jobs.rs b/backend/windmill-api/src/jobs.rs index 4fc388ce62..077ddd2876 100644 --- a/backend/windmill-api/src/jobs.rs +++ b/backend/windmill-api/src/jobs.rs @@ -1933,7 +1933,7 @@ async fn count_completed_jobs_detail( if let Some(after_s_ago) = query.completed_after_s_ago { let after = Utc::now() - chrono::Duration::seconds(after_s_ago); - sqlb.and_where_gt("ended_at", "?".bind(&after.to_rfc3339())); + sqlb.and_where_gt("completed_at", "?".bind(&after.to_rfc3339())); } if let Some(success) = query.success {