mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
fix get_job_update returning error (#4427)
When get_progress specified to true, but there is no record of progress for given job Endpoint will fail and return error. Nothing cricial but should be fixed.
This commit is contained in:
@@ -4663,8 +4663,8 @@ async fn get_job_update(
|
||||
"progress_perc"
|
||||
|
||||
)
|
||||
.fetch_one(&db)
|
||||
.await?
|
||||
.fetch_optional(&db)
|
||||
.await?.and_then(|inner| inner)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user