fix: Issue with credentials and workflows not being matched correctly due to incorrect typing (#5011)

* fix: Always return ids as strings
This commit is contained in:
Omar Ajoue
2022-12-22 16:09:06 +01:00
committed by GitHub
parent 67da2d0c72
commit 746e8487d2
3 changed files with 9 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ EEWorkflowController.get(
EEWorkflows.addOwnerAndSharings(workflow);
await EEWorkflows.addCredentialsToWorkflow(workflow, req.user);
return workflow;
return { ...workflow, id: workflow.id.toString() };
}),
);
@@ -214,7 +214,7 @@ EEWorkflowController.get(
EEWorkflows.addOwnerAndSharings(workflow);
await EEWorkflows.addCredentialsToWorkflow(workflow, req.user);
workflow.nodes = [];
return workflow;
return { ...workflow, id: workflow.id.toString() };
}),
);
}),