mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -10,9 +10,8 @@ import { NodeApiError } from 'n8n-workflow';
|
||||
import type { ElasticsearchApiCredentials } from './types';
|
||||
|
||||
export async function elasticsearchBulkApiRequest(this: IExecuteFunctions, body: IDataObject) {
|
||||
const { baseUrl, ignoreSSLIssues } = (await this.getCredentials(
|
||||
'elasticsearchApi',
|
||||
)) as ElasticsearchApiCredentials;
|
||||
const { baseUrl, ignoreSSLIssues } =
|
||||
await this.getCredentials<ElasticsearchApiCredentials>('elasticsearchApi');
|
||||
|
||||
const bulkBody = Object.values(body).flat().join('\n') + '\n';
|
||||
|
||||
@@ -58,9 +57,8 @@ export async function elasticsearchApiRequest(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const { baseUrl, ignoreSSLIssues } = (await this.getCredentials(
|
||||
'elasticsearchApi',
|
||||
)) as ElasticsearchApiCredentials;
|
||||
const { baseUrl, ignoreSSLIssues } =
|
||||
await this.getCredentials<ElasticsearchApiCredentials>('elasticsearchApi');
|
||||
|
||||
const options: IHttpRequestOptions = {
|
||||
method,
|
||||
|
||||
Reference in New Issue
Block a user