refactor: Make execution IDs mandatory in BE (#8299)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -281,7 +281,7 @@ export class ExecutionsService {
|
||||
if (req.body.loadWorkflow) {
|
||||
// Loads the currently saved workflow to execute instead of the
|
||||
// one saved at the time of the execution.
|
||||
const workflowId = execution.workflowData.id as string;
|
||||
const workflowId = execution.workflowData.id;
|
||||
const workflowData = (await Container.get(WorkflowRepository).findOneBy({
|
||||
id: workflowId,
|
||||
})) as IWorkflowBase;
|
||||
@@ -296,7 +296,7 @@ export class ExecutionsService {
|
||||
data.workflowData = workflowData;
|
||||
const nodeTypes = Container.get(NodeTypes);
|
||||
const workflowInstance = new Workflow({
|
||||
id: workflowData.id as string,
|
||||
id: workflowData.id,
|
||||
name: workflowData.name,
|
||||
nodes: workflowData.nodes,
|
||||
connections: workflowData.connections,
|
||||
|
||||
Reference in New Issue
Block a user