From 2902f745e3176a7edd72268e7b7f1d025d3feb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 1 Jun 2021 11:08:03 +0200 Subject: [PATCH] :hammer: Restore continue on fail --- packages/nodes-base/nodes/Zoho/ZohoCrm.node.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/nodes-base/nodes/Zoho/ZohoCrm.node.ts b/packages/nodes-base/nodes/Zoho/ZohoCrm.node.ts index 71654a9d0c..a5fd86a6ef 100644 --- a/packages/nodes-base/nodes/Zoho/ZohoCrm.node.ts +++ b/packages/nodes-base/nodes/Zoho/ZohoCrm.node.ts @@ -255,7 +255,7 @@ export class ZohoCrm implements INodeType { // https://www.zoho.com/crm/developer/docs/api/update-specific-record.html // https://www.zoho.com/crm/developer/docs/api/delete-specific-record.html - // try { + try { if (resource === 'account') { @@ -1341,14 +1341,14 @@ export class ZohoCrm implements INodeType { } - // } catch (error) { - // if (this.continueOnFail()) { - // returnData.push({ error: error.message }); - // continue; - // } + } catch (error) { + if (this.continueOnFail()) { + returnData.push({ error: error.message }); + continue; + } - // throw error; - // } + throw error; + } Array.isArray(responseData) ? returnData.push(...responseData)