mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -68,7 +68,7 @@ export async function elasticsearchApiRequestAllItems(
|
||||
track_total_hits: false, //Disable the tracking of total hits to speed up pagination
|
||||
};
|
||||
|
||||
responseData = await elasticsearchApiRequest.call(this, 'GET', `/_search`, requestBody, qs);
|
||||
responseData = await elasticsearchApiRequest.call(this, 'GET', '/_search', requestBody, qs);
|
||||
if (responseData?.hits?.hits) {
|
||||
returnData = returnData.concat(responseData.hits.hits);
|
||||
const lastHitIndex = responseData.hits.hits.length - 1;
|
||||
@@ -84,7 +84,7 @@ export async function elasticsearchApiRequestAllItems(
|
||||
requestBody.search_after = searchAfter;
|
||||
requestBody.pit = { id: pit, keep_alive: '1m' };
|
||||
|
||||
responseData = await elasticsearchApiRequest.call(this, 'GET', `/_search`, requestBody, qs);
|
||||
responseData = await elasticsearchApiRequest.call(this, 'GET', '/_search', requestBody, qs);
|
||||
|
||||
if (responseData?.hits?.hits?.length) {
|
||||
returnData = returnData.concat(responseData.hits.hits);
|
||||
@@ -96,7 +96,7 @@ export async function elasticsearchApiRequestAllItems(
|
||||
}
|
||||
}
|
||||
|
||||
await elasticsearchApiRequest.call(this, 'DELETE', `/_pit`, { id: pit });
|
||||
await elasticsearchApiRequest.call(this, 'DELETE', '/_pit', { id: pit });
|
||||
|
||||
return returnData;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user