diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts index 642ce1484fe4f..333a412a02ce2 100644 --- a/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts @@ -80,7 +80,7 @@ export async function elasticsearchApiRequest( } try { - return await this.helpers.requestWithAuthentication.call(this, 'elasticsearchApi', options); + return await this.helpers.httpRequestWithAuthentication.call(this, 'elasticsearchApi', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); }