|
@@ -107,8 +107,11 @@ const outputSchema = {
|
|
|
async function execute(config, input, context) {
|
|
async function execute(config, input, context) {
|
|
|
smartbotic.log.info('POST trigger activated');
|
|
smartbotic.log.info('POST trigger activated');
|
|
|
|
|
|
|
|
- // The trigger data comes from the webhook controller
|
|
|
|
|
- const triggerData = context.triggerData || {};
|
|
|
|
|
|
|
+ // The runner hands the trigger node's payload to `input`, not `context` -
|
|
|
|
|
+ // `context` only carries executionId/nodeId/workflowId. Executed directly
|
|
|
|
|
+ // from the editor's Run button there is no request, so the defaults below
|
|
|
|
|
+ // (method POST, empty path/query/headers/body/clientIp) are the honest answer.
|
|
|
|
|
+ const triggerData = input || {};
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
method: triggerData.method || 'POST',
|
|
method: triggerData.method || 'POST',
|