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:
@@ -247,7 +247,7 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'organizations',
|
||||
'GET',
|
||||
`/organizations`,
|
||||
'/organizations',
|
||||
{},
|
||||
{},
|
||||
);
|
||||
@@ -438,7 +438,7 @@ export class Zendesk implements INodeType {
|
||||
if (options.sortOrder) {
|
||||
qs.sort_order = options.sortOrder;
|
||||
}
|
||||
const endpoint = ticketType === 'regular' ? `/search` : `/suspended_tickets`;
|
||||
const endpoint = ticketType === 'regular' ? '/search' : '/suspended_tickets';
|
||||
const property = ticketType === 'regular' ? 'results' : 'suspended_tickets';
|
||||
if (returnAll) {
|
||||
responseData = await zendeskApiRequestAllItems.call(
|
||||
@@ -595,14 +595,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'users',
|
||||
'GET',
|
||||
`/users`,
|
||||
'/users',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/users`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/users', {}, qs);
|
||||
responseData = responseData.users;
|
||||
}
|
||||
}
|
||||
@@ -629,14 +629,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'users',
|
||||
'GET',
|
||||
`/users/search`,
|
||||
'/users/search',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/users/search`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/users/search', {}, qs);
|
||||
responseData = responseData.users;
|
||||
}
|
||||
}
|
||||
@@ -705,7 +705,7 @@ export class Zendesk implements INodeType {
|
||||
}
|
||||
//https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#count-organizations
|
||||
if (operation === 'count') {
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/organizations/count`, {});
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/organizations/count', {});
|
||||
responseData = responseData.count;
|
||||
}
|
||||
//https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#show-organization
|
||||
@@ -728,14 +728,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'organizations',
|
||||
'GET',
|
||||
`/organizations`,
|
||||
'/organizations',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/organizations`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/organizations', {}, qs);
|
||||
responseData = responseData.organizations;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user