From 14368ccc63003b99ad1f4a5d69ba94fe7af69fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 14 Apr 2021 11:09:18 +0200 Subject: [PATCH] :zap: Stringify tag IDs in GET workflows/:id --- packages/cli/src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index a0ee17ac70..98bc93d8dd 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -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();