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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user