mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Fix lint issue
This commit is contained in:
parent
18313e1199
commit
c2d80d6d70
|
@ -42,7 +42,7 @@ export async function pushcutApiRequest(this: IExecuteFunctions | ILoadOptionsFu
|
||||||
|
|
||||||
// Try to return the error prettier
|
// Try to return the error prettier
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Pushcut error response [${error.statusCode}]: ${message}`
|
`Pushcut error response [${error.statusCode}]: ${message}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
|
|
|
@ -48,7 +48,7 @@ export class Pushcut implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'notification',
|
default: 'notification',
|
||||||
description: 'The resource to operate on.'
|
description: 'The resource to operate on.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Operation',
|
displayName: 'Operation',
|
||||||
|
@ -69,7 +69,7 @@ export class Pushcut implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'send',
|
default: 'send',
|
||||||
description: 'The resource to operate on.'
|
description: 'The resource to operate on.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Notification Name',
|
displayName: 'Notification Name',
|
||||||
|
|
|
@ -84,7 +84,7 @@ export class PushcutTrigger implements INodeType {
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
actionName,
|
actionName,
|
||||||
url: webhookUrl
|
url: webhookUrl,
|
||||||
};
|
};
|
||||||
|
|
||||||
const responseData = await pushcutApiRequest.call(this, 'POST', endpoint, body);
|
const responseData = await pushcutApiRequest.call(this, 'POST', endpoint, body);
|
||||||
|
@ -123,7 +123,7 @@ export class PushcutTrigger implements INodeType {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
workflowData: [
|
workflowData: [
|
||||||
this.helpers.returnJsonArray(body)
|
this.helpers.returnJsonArray(body),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue