refactor: Make execution IDs mandatory in BE (#8299)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Omar Ajoue
2024-01-16 09:53:17 +00:00
committed by GitHub
parent 0f4f472a72
commit e1acb5911a
16 changed files with 136 additions and 136 deletions

View File

@@ -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,