mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ handle verification request
This commit is contained in:
@@ -240,6 +240,11 @@ export class AffinityTrigger implements INodeType {
|
|||||||
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
||||||
const bodyData = this.getBodyData();
|
const bodyData = this.getBodyData();
|
||||||
const resolveData = this.getNodeParameter('resolveData', false) as boolean;
|
const resolveData = this.getNodeParameter('resolveData', false) as boolean;
|
||||||
|
|
||||||
|
if (bodyData.type === 'sample.webhook') {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
|
||||||
if (resolveData === false) {
|
if (resolveData === false) {
|
||||||
// Return the data as it got received
|
// Return the data as it got received
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user