mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ handle verification request
This commit is contained in:
parent
5b00ef7158
commit
2111c15f35
|
@ -240,6 +240,11 @@ export class AffinityTrigger implements INodeType {
|
|||
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
||||
const bodyData = this.getBodyData();
|
||||
const resolveData = this.getNodeParameter('resolveData', false) as boolean;
|
||||
|
||||
if (bodyData.type === 'sample.webhook') {
|
||||
return {}
|
||||
}
|
||||
|
||||
if (resolveData === false) {
|
||||
// Return the data as it got received
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue