Skip to content

Commit

Permalink
fix: add ordering to flow listing to avoid flows moving after update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Aug 13, 2024
1 parent 71f89d9 commit 0757ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/data/flow/FlowDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class FlowDataService extends EventEmitter {

async listFlows(modelId: string, dataFlowId: string): Promise<Flow[]> {
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]);
Expand Down

0 comments on commit 0757ba0

Please sign in to comment.