From 0757ba0ca31347fafe30581468256f8a0d4f393f Mon Sep 17 00:00:00 2001 From: Joakim Uddholm Date: Tue, 13 Aug 2024 10:46:55 +0200 Subject: [PATCH] fix: add ordering to flow listing to avoid flows moving after update --- core/src/data/flow/FlowDataService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/data/flow/FlowDataService.ts b/core/src/data/flow/FlowDataService.ts index 9580f8d8..6f740f53 100644 --- a/core/src/data/flow/FlowDataService.ts +++ b/core/src/data/flow/FlowDataService.ts @@ -39,7 +39,7 @@ export class FlowDataService extends EventEmitter { async listFlows(modelId: string, dataFlowId: string): Promise { const query = ` - SELECT * FROM flows WHERE model_id = $1 AND data_flow_id = $2 + SELECT * FROM flows WHERE model_id = $1 AND data_flow_id = $2 ORDER BY id ASC `; const res = await this.pool.query(query, [modelId, dataFlowId]);