mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Fix linting issues on master (no-changelog) (#5030)
* make CI logs less noisy. suppress linting warning * fix linting issues
This commit is contained in:
committed by
GitHub
parent
a8f4efaf3e
commit
a229788d4b
@@ -48,7 +48,7 @@ export async function layoutsApiRequest(
|
||||
};
|
||||
|
||||
try {
|
||||
const responseData = await this.helpers.request!(options);
|
||||
const responseData = await this.helpers.request(options);
|
||||
const items = parseLayouts(responseData.response.layouts);
|
||||
items.sort((a, b) => (a.name > b.name ? 0 : 1));
|
||||
return items;
|
||||
@@ -95,7 +95,7 @@ export async function getFields(this: ILoadOptionsFunctions): Promise<any> {
|
||||
};
|
||||
|
||||
try {
|
||||
const responseData = await this.helpers.request!(options);
|
||||
const responseData = await this.helpers.request(options);
|
||||
return responseData.response.fieldMetaData;
|
||||
} catch (error) {
|
||||
// If that data does not exist for some reason return the actual error
|
||||
@@ -126,7 +126,7 @@ export async function getPortals(this: ILoadOptionsFunctions): Promise<any> {
|
||||
};
|
||||
|
||||
try {
|
||||
const responseData = await this.helpers.request!(options);
|
||||
const responseData = await this.helpers.request(options);
|
||||
return responseData.response.portalMetaData;
|
||||
} catch (error) {
|
||||
// If that data does not exist for some reason return the actual error
|
||||
@@ -156,7 +156,7 @@ export async function getScripts(this: ILoadOptionsFunctions): Promise<any> {
|
||||
};
|
||||
|
||||
try {
|
||||
const responseData = await this.helpers.request!(options);
|
||||
const responseData = await this.helpers.request(options);
|
||||
const items = parseScriptsList(responseData.response.scripts);
|
||||
items.sort((a, b) => (a.name > b.name ? 0 : 1));
|
||||
return items;
|
||||
@@ -216,7 +216,7 @@ export async function getToken(
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await this.helpers.request!(requestOptions);
|
||||
const response = await this.helpers.request(requestOptions);
|
||||
|
||||
if (typeof response === 'string') {
|
||||
throw new NodeOperationError(
|
||||
@@ -252,7 +252,7 @@ export async function logout(
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await this.helpers.request!(requestOptions);
|
||||
const response = await this.helpers.request(requestOptions);
|
||||
|
||||
if (typeof response === 'string') {
|
||||
throw new NodeOperationError(
|
||||
|
||||
Reference in New Issue
Block a user