Fix missing WHERE clause in migration (#13718)

As title, this has been run in production and all the workflow runs have
been updated with the last workflow run data
This commit is contained in:
martmull
2025-08-07 14:12:44 +02:00
committed by GitHub
parent d1be33a759
commit 8a246b5422
@@ -64,8 +64,8 @@ export class AddNextStepIdsToWorkflowRunsTrigger extends ActiveOrSuspendedWorksp
};
await mainDataSource.query(
`UPDATE ${schemaName}."workflowRun" SET state = $1::jsonb`,
[updatedState],
`UPDATE ${schemaName}."workflowRun" SET state = $1::jsonb WHERE id = $2;`,
[updatedState, workflowRun.id],
);
updatedWorkflowRunCount += 1;