Skip to content

Commit

Permalink
labels nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Apr 24, 2024
1 parent aece019 commit e8e6a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/tests/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ async fn listen_for_uuid_on(

async fn completed_job(uuid: Uuid, db: &Pool<Postgres>) -> CompletedJob {

sqlx::query_as::<_, CompletedJob>("SELECT *, result->'wm_labels' as label FROM completed_job WHERE id = $1").bind(uuid)
sqlx::query_as::<_, CompletedJob>("SELECT *, result->'wm_labels' as labels FROM completed_job WHERE id = $1").bind(uuid)
.fetch_one(db)
.await
.unwrap()
Expand Down
4 changes: 2 additions & 2 deletions backend/windmill-queue/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ async fn get_result_by_id_from_original_flow(
json_path: Option<String>,
) -> error::Result<Box<RawValue>> {
let flow_job = sqlx::query_as::<_, CompletedJob>(
"SELECT *, null as label FROM completed_job WHERE id = $1 AND workspace_id = $2",
"SELECT *, null as labels FROM completed_job WHERE id = $1 AND workspace_id = $2",
)
.bind(completed_flow_id)
.bind(w_id)
Expand Down Expand Up @@ -3469,7 +3469,7 @@ async fn restarted_flows_resolution(
Error,
> {
let completed_job = sqlx::query_as::<_, CompletedJob>(
"SELECT *, null as label FROM completed_job WHERE id = $1 and workspace_id = $2",
"SELECT *, null as labels FROM completed_job WHERE id = $1 and workspace_id = $2",
)
.bind(completed_flow_id)
.bind(workspace_id)
Expand Down

0 comments on commit e8e6a6c

Please sign in to comment.