mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -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> {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue