mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
👕 Fix lint issue
This commit is contained in:
parent
b67ec19c8d
commit
0ad089ffb6
|
@ -60,8 +60,8 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
|
||||||
return JSON.parse(await this.helpers.request!(options));
|
return JSON.parse(await this.helpers.request!(options));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage =
|
const errorMessage =
|
||||||
(error.response && error.response.body && error.response.body.message) ||
|
(error.response && error.response.body && error.response.body.message) ||
|
||||||
(error.response && error.response.body && error.response.body.Message) ||
|
(error.response && error.response.body && error.response.body.Message) ||
|
||||||
error.message;
|
error.message;
|
||||||
if (error.statusCode === 403) {
|
if (error.statusCode === 403) {
|
||||||
if (errorMessage === 'The security token included in the request is invalid.') {
|
if (errorMessage === 'The security token included in the request is invalid.') {
|
||||||
|
|
|
@ -20,11 +20,13 @@ export const searchOperations: INodeProperties[] = [
|
||||||
name: 'Query',
|
name: 'Query',
|
||||||
value: 'query',
|
value: 'query',
|
||||||
description: 'Search for records by entering search queries of your choice',
|
description: 'Search for records by entering search queries of your choice',
|
||||||
|
action: 'Query a search',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Lookup',
|
name: 'Lookup',
|
||||||
value: 'lookup',
|
value: 'lookup',
|
||||||
description: 'Search for the name or email address of records',
|
description: 'Search for the name or email address of records',
|
||||||
|
action: 'Lookup a search',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'query',
|
default: 'query',
|
||||||
|
|
|
@ -1750,7 +1750,7 @@ export class Github implements INodeType {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
`No binary data property "${binaryPropertyName}" does not exists on item!`,
|
`No binary data property "${binaryPropertyName}" does not exists on item!`,
|
||||||
{ itemIndex: i }
|
{ itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ export const campaignOperations: INodeProperties[] = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
action: 'Get all campaigns',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get',
|
name: 'Get',
|
||||||
|
@ -114,6 +115,7 @@ export const campaignOperations: INodeProperties[] = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
action: 'Get a campaign',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'getAll',
|
default: 'getAll',
|
||||||
|
|
|
@ -330,7 +330,7 @@ export class GoogleCalendar implements INodeType {
|
||||||
additionalFields.repeatUntil
|
additionalFields.repeatUntil
|
||||||
) {
|
) {
|
||||||
throw new NodeOperationError(this.getNode(),
|
throw new NodeOperationError(this.getNode(),
|
||||||
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i }
|
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (additionalFields.repeatFrecuency) {
|
if (additionalFields.repeatFrecuency) {
|
||||||
|
@ -577,7 +577,7 @@ export class GoogleCalendar implements INodeType {
|
||||||
} else {
|
} else {
|
||||||
if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) {
|
if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) {
|
||||||
throw new NodeOperationError(this.getNode(),
|
throw new NodeOperationError(this.getNode(),
|
||||||
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i }
|
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (updateFields.repeatFrecuency) {
|
if (updateFields.repeatFrecuency) {
|
||||||
|
|
|
@ -241,7 +241,7 @@ export class GooglePerspective implements INodeType {
|
||||||
if (!attributes.length) {
|
if (!attributes.length) {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
'Please enter at least one attribute to analyze.', { itemIndex: i }
|
'Please enter at least one attribute to analyze.', { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2200,7 +2200,7 @@ export class Hubspot implements INodeType {
|
||||||
if (!Object.keys(metadata).length) {
|
if (!Object.keys(metadata).length) {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
`At least one metadata field needs to set`, { itemIndex: i }
|
`At least one metadata field needs to set`, { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ export class Iterable implements INodeType {
|
||||||
if (this.continueOnFail() === false) {
|
if (this.continueOnFail() === false) {
|
||||||
if (responseData.code !== 'Success') {
|
if (responseData.code !== 'Success') {
|
||||||
throw new NodeOperationError(this.getNode(),
|
throw new NodeOperationError(this.getNode(),
|
||||||
`Iterable error response [400]: ${responseData.msg}`, { itemIndex: i }
|
`Iterable error response [400]: ${responseData.msg}`, { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,7 @@ export class Marketstack implements INodeType {
|
||||||
if (!dateFrom || !dateTo) {
|
if (!dateFrom || !dateTo) {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
'Please enter a start and end date to filter by timeframe.', { itemIndex: i }
|
'Please enter a start and end date to filter by timeframe.', { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
endpoint = '/eod';
|
endpoint = '/eod';
|
||||||
|
|
|
@ -204,7 +204,7 @@ export class Raindrop implements INodeType {
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
|
|
||||||
if (isEmpty(updateFields)) {
|
if (isEmpty(updateFields)) {
|
||||||
throw new NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`), { itemIndex: i };
|
throw new NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`, { itemIndex: i });
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.assign(body, updateFields);
|
Object.assign(body, updateFields);
|
||||||
|
|
|
@ -73,6 +73,7 @@ export class Redis implements INodeType {
|
||||||
name: 'Pop',
|
name: 'Pop',
|
||||||
value: 'pop',
|
value: 'pop',
|
||||||
description: 'Pop data from a redis list',
|
description: 'Pop data from a redis list',
|
||||||
|
action: 'Pop data from a redis list',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Publish',
|
name: 'Publish',
|
||||||
|
@ -84,6 +85,7 @@ export class Redis implements INodeType {
|
||||||
name: 'Push',
|
name: 'Push',
|
||||||
value: 'push',
|
value: 'push',
|
||||||
description: 'Push data to a redis list',
|
description: 'Push data to a redis list',
|
||||||
|
action: 'Push data to a redis list',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Set',
|
name: 'Set',
|
||||||
|
|
|
@ -144,7 +144,7 @@ export class UrlScanIo implements INodeType {
|
||||||
if (tags.length > 10) {
|
if (tags.length > 10) {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
'Please enter at most 10 tags', { itemIndex: i }
|
'Please enter at most 10 tags', { itemIndex: i },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue