1235912359 "versionId": "a7b0fdba-5069-430a-83c1-6d79443e6ddf"
1236012360 },
1236112361 {
12362- "active": false ,
12362+ "active": true ,
1236312363 "connections": {
1236412364 "AI Agent1": {
1236512365 "main": [
1256512565 ]
1256612566 ]
1256712567 },
12568+ "Webhook": {
12569+ "main": [
12570+ [
12571+ {
12572+ "index": 0,
12573+ "node": "Postgres1",
12574+ "type": "main"
12575+ }
12576+ ]
12577+ ]
12578+ },
1256812579 "delivered-news": {
1256912580 "main": [
1257012581 [
1327313284 ],
1327413285 "type": "n8n-nodes-base.splitInBatches",
1327513286 "typeVersion": 3
13287+ },
13288+ {
13289+ "id": "abb0baf6-7ff3-48bb-bf0f-0293d0027e37",
13290+ "name": "Webhook",
13291+ "parameters": {
13292+ "httpMethod": "POST",
13293+ "options": {
13294+ },
13295+ "path": "scan-subscriptions",
13296+ "responseMode": "lastNode"
13297+ },
13298+ "position": [
13299+ -3260,
13300+ 320
13301+ ],
13302+ "type": "n8n-nodes-base.webhook",
13303+ "typeVersion": 2,
13304+ "webhookId": "9595e75a-b768-4323-8417-c4834e50f385"
1327613305 }
1327713306 ],
1327813307 "pinData": {
@@ -13282,12 +13311,17 @@
1328213311 "errorWorkflow": "ATeafIxZxFrZ0jIR",
1328313312 "executionOrder": "v1"
1328413313 },
13285- "staticData": null,
13314+ "staticData": {
13315+ "node:Reddits 1h": {
13316+ "recurrenceRules": [
13317+ ]
13318+ }
13319+ },
1328613320 "tags": [
1328713321 ],
13288- "triggerCount": 0 ,
13289- "updatedAt": "2025-04-29T16:02:29 .000Z",
13290- "versionId": "62f7af71-b8c5-4bbb-a3b0-d4eb856f9c0f "
13322+ "triggerCount": 2 ,
13323+ "updatedAt": "2025-05-06T14:53:25 .000Z",
13324+ "versionId": "2dde192f-2810-4cb6-bda2-6694b179fdba "
1329113325 },
1329213326 {
1329313327 "active": false,
1560615640 ]
1560715641 ]
1560815642 },
15643+ "CallWebhook": {
15644+ "main": [
15645+ [
15646+ {
15647+ "index": 0,
15648+ "node": "Respond to Webhook",
15649+ "type": "main"
15650+ }
15651+ ]
15652+ ]
15653+ },
1560915654 "Construct Response": {
1561015655 "main": [
1561115656 [
1653516580 "node": "n8n",
1653616581 "type": "main"
1653716582 }
16583+ ],
16584+ [
16585+ {
16586+ "index": 0,
16587+ "node": "CallWebhook",
16588+ "type": "main"
16589+ }
1653816590 ]
1653916591 ]
1654016592 },
1723817290 },
1723917291 "outputKey": "getLastScanOfSubscriptions",
1724017292 "renameOutput": true
17293+ },
17294+ {
17295+ "conditions": {
17296+ "combinator": "and",
17297+ "conditions": [
17298+ {
17299+ "id": "52b0bec6-74e2-47da-a5e1-e754adb8d4b2",
17300+ "leftValue": "={{ $('Webhook').item.json.body.method }}",
17301+ "operator": {
17302+ "name": "filter.operator.equals",
17303+ "operation": "equals",
17304+ "type": "string"
17305+ },
17306+ "rightValue": "scanSubscriptions"
17307+ }
17308+ ],
17309+ "options": {
17310+ "caseSensitive": true,
17311+ "leftValue": "",
17312+ "typeValidation": "strict",
17313+ "version": 2
17314+ }
17315+ },
17316+ "outputKey": "scanSubscriptions",
17317+ "renameOutput": true
1724117318 }
1724217319 ]
1724317320 }
2015720234 "assignments": [
2015820235 {
2015920236 "id": "6d78cfe8-dbb5-4258-9539-dc98f8a7d691",
20160- "name": "result.lastSyncAt ",
20237+ "name": "result.lastScanAt ",
2016120238 "type": "string",
2016220239 "value": "={{ $json.startedAt }}"
2016320240 }
2017220249 ],
2017320250 "type": "n8n-nodes-base.set",
2017420251 "typeVersion": 3.4
20252+ },
20253+ {
20254+ "id": "6b735279-04b2-4a8e-80e5-4f1368a3a904",
20255+ "name": "CallWebhook",
20256+ "parameters": {
20257+ "headerParameters": {
20258+ "parameters": [
20259+ {
20260+ "name": "user-agent",
20261+ "value": "application/json"
20262+ }
20263+ ]
20264+ },
20265+ "method": "POST",
20266+ "options": {
20267+ },
20268+ "sendHeaders": true,
20269+ "url": "={{process.env.WEBHOOK_URL.replace(/\\/$/, '')}}/webhook/scan-subscriptions"
20270+ },
20271+ "position": [
20272+ 2300,
20273+ 4920
20274+ ],
20275+ "type": "n8n-nodes-base.httpRequest",
20276+ "typeVersion": 4.2
2017520277 }
2017620278 ],
2017720279 "pinData": {
2018320285 "tags": [
2018420286 ],
2018520287 "triggerCount": 1,
20186- "updatedAt": "2025-05-06T14:37:21 .000Z",
20187- "versionId": "c5206e9b-864e-45b5-a593-f12a4d578b46 "
20288+ "updatedAt": "2025-05-06T14:52:37 .000Z",
20289+ "versionId": "3f032c90-f483-46b7-ae94-dccde50113ba "
2018820290 },
2018920291 {
2019020292 "active": true,
0 commit comments