Update backup: Tablero CDC - Sync Proyecto a Sheet WEBHOOK
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updatedAt": "2026-06-04T00:43:22.749Z",
|
||||
"updatedAt": "2026-06-05T16:33:58.143Z",
|
||||
"createdAt": "2026-05-27T18:36:03.445Z",
|
||||
"id": "d39DtIUTQzduqX0v",
|
||||
"name": "Tablero CDC - Sync Proyecto a Sheet WEBHOOK",
|
||||
@@ -317,7 +317,7 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "const body = $json.body && typeof $json.body === 'object'\n ? $json.body\n : $json;\n\nconst projectId =\n body.project_id ||\n body.projectId ||\n body.id ||\n '';\n\nif (!projectId) {\n throw new Error('No se recibió project_id en el webhook.');\n}\n\nreturn [\n {\n json: {\n project_id: String(projectId).trim(),\n received_at: new Date().toISOString(),\n },\n },\n];"
|
||||
"jsCode": "const input = $json || {};\nconst body = input.body || input;\n\nconst projectId =\n body.project_id ||\n body.projectId ||\n body.id ||\n '';\n\nconst action =\n String(body.action || 'sync').trim().toLowerCase();\n\nif (!projectId) {\n throw new Error('Falta project_id en el payload del webhook');\n}\n\nreturn [\n {\n json: {\n action,\n project_id: projectId,\n received_at: new Date().toISOString(),\n },\n },\n];"
|
||||
},
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
@@ -441,9 +441,9 @@
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"versionId": "17638407-8c4f-4070-b040-a23f2750265e",
|
||||
"versionId": "5702bf85-2a80-4ba8-b24f-9c53612cf7af",
|
||||
"activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e",
|
||||
"versionCounter": 60,
|
||||
"versionCounter": 61,
|
||||
"triggerCount": 1,
|
||||
"shared": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user