From a368d2c6d4c046f0ede23eb4cd671a763bdc0ab3 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 31 Jul 2022 20:39:31 +0200 Subject: [PATCH] order result from forloop bby args _index --- backend/src/worker_flow.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/worker_flow.rs b/backend/src/worker_flow.rs index 48fec1b331..4f0d3df334 100644 --- a/backend/src/worker_flow.rs +++ b/backend/src/worker_flow.rs @@ -157,6 +157,7 @@ pub async fn update_flow_status_after_job_completion( WHERE id = ANY($1) AND workspace_id = $2 AND success = true + ORDER BY args->>'_index' ", ) .bind(jobs.as_slice())