Stringify tag IDs in GET workflows/:id

This commit is contained in:
Iván Ovejero 2021-04-14 11:09:18 +02:00
parent 9ec9ff9f71
commit 14368ccc63

View file

@ -581,7 +581,8 @@ class App {
return undefined;
}
result.tags = await TagHelpers.getWorkflowTags(req.params.id);
const foundTags = await TagHelpers.getWorkflowTags(req.params.id);
result.tags = foundTags.map(({ id, name }) => ({ id: id.toString(), name }));
// Convert to response format in which the id is a string
(result as IWorkflowBase as IWorkflowResponse).id = result.id.toString();