handle verification request

This commit is contained in:
Ricardo Espinoza 2020-02-25 18:28:41 -05:00
parent 5b00ef7158
commit 2111c15f35

View file

@ -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 {