From 77233f23701fa456a7d0170dc0b8118afa71a8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 25 Oct 2022 09:07:26 +0200 Subject: [PATCH] fix(core): fix `predefinedCredentialType` in node graph item (#4379) * :bug: Fix predefined cred in node graph item * :fire: Remove logging --- packages/workflow/src/TelemetryHelpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workflow/src/TelemetryHelpers.ts b/packages/workflow/src/TelemetryHelpers.ts index 32eef70c75..b53e609aea 100644 --- a/packages/workflow/src/TelemetryHelpers.ts +++ b/packages/workflow/src/TelemetryHelpers.ts @@ -171,13 +171,13 @@ export function generateNodesGraph( } catch (_) { nodeItem.domain = getDomainBase(node.parameters.url as string); } - } else if (node.type === 'n8n-nodes-base.httpRequest' && node.typeVersion === 2) { + } else if (node.type === 'n8n-nodes-base.httpRequest' && [2, 3].includes(node.typeVersion)) { const { authentication } = node.parameters as { authentication: string }; nodeItem.credential_type = { none: 'none', genericCredentialType: node.parameters.genericAuthType as string, - existingCredentialType: node.parameters.nodeCredentialType as string, + predefinedCredentialType: node.parameters.nodeCredentialType as string, }[authentication]; nodeItem.credential_set = node.credentials