mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -40,7 +40,7 @@ export async function sendyApiRequest(this: IExecuteFunctions | ILoadOptionsFunc
|
||||
errors = errors.map((e: IDataObject) => e.message);
|
||||
// Try to return the error prettier
|
||||
throw new Error(
|
||||
`Sendy error response [${error.statusCode}]: ${errors.join('|')}`
|
||||
`Sendy error response [${error.statusCode}]: ${errors.join('|')}`,
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
|
||||
@@ -148,7 +148,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/api/campaigns/create.php',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
const success = [
|
||||
@@ -184,7 +184,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/subscribe',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
if (responseData === '1') {
|
||||
@@ -206,7 +206,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/api/subscribers/active-subscriber-count.php',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
const errors = [
|
||||
@@ -239,7 +239,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/api/subscribers/delete.php',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
if (responseData === '1') {
|
||||
@@ -264,7 +264,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/unsubscribe',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
if (responseData === '1') {
|
||||
@@ -289,7 +289,7 @@ export class Sendy implements INodeType {
|
||||
this,
|
||||
'POST',
|
||||
'/api/subscribers/subscription-status.php',
|
||||
body
|
||||
body,
|
||||
);
|
||||
|
||||
const status = [
|
||||
|
||||
Reference in New Issue
Block a user