mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
feat(Stripe Trigger Node): Add Stripe webhook descriptions based on the workflow ID and name (#9956)
This commit is contained in:
parent
0a84e0d8b0
commit
34334651e0
|
@ -865,12 +865,15 @@ export class StripeTrigger implements INodeType {
|
||||||
async create(this: IHookFunctions): Promise<boolean> {
|
async create(this: IHookFunctions): Promise<boolean> {
|
||||||
const webhookUrl = this.getNodeWebhookUrl('default');
|
const webhookUrl = this.getNodeWebhookUrl('default');
|
||||||
|
|
||||||
|
const webhookDescription = `Created by n8n for workflow ID: ${this.getWorkflow().id}`;
|
||||||
|
|
||||||
const events = this.getNodeParameter('events', []);
|
const events = this.getNodeParameter('events', []);
|
||||||
|
|
||||||
const endpoint = '/webhook_endpoints';
|
const endpoint = '/webhook_endpoints';
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
url: webhookUrl,
|
url: webhookUrl,
|
||||||
|
description: webhookDescription,
|
||||||
enabled_events: events,
|
enabled_events: events,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue