@trg-admin/n8n-nodes-zoho-desk 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,7 +111,7 @@ async function getContactByEmail(email, itemIndex = 0) {
|
|
|
111
111
|
if (!trimmedEmail) {
|
|
112
112
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), new Error('Contact Email cannot be empty'), { itemIndex });
|
|
113
113
|
}
|
|
114
|
-
const responseData = await zohoDeskApiRequest.call(this, 'GET', '/contacts/search', {}, { email: trimmedEmail
|
|
114
|
+
const responseData = await zohoDeskApiRequest.call(this, 'GET', '/contacts/search', {}, { email: trimmedEmail }, itemIndex);
|
|
115
115
|
const contacts = Array.isArray(responseData.data)
|
|
116
116
|
? responseData.data
|
|
117
117
|
: Array.isArray(responseData)
|