Skip to content

Commit 091db8b

Browse files
ImTotemclaude
andcommitted
feat(workflow): link expiration interval hourly → 1min
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 49895b9 commit 091db8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

infra/scripts/init_n8n.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ setup_pg_credential
115115

116116
echo "5. Importing workflows..."
117117
import_workflow "/workflows/pg_sheets_sync.json" "PG → Sheets Sync (5min)"
118-
import_workflow "/workflows/link_auto_expire.json" "Link Auto-Expiration (hourly)"
118+
import_workflow "/workflows/link_auto_expire.json" "Link Auto-Expiration (1min)"
119119

120120
echo "=== n8n Init complete ==="
121121
echo "NOTE: Set up Google Sheets credential in n8n UI if first deploy"

workflows/link_auto_expire.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "Link Auto-Expiration (hourly)",
2+
"name": "Link Auto-Expiration (1min)",
33
"nodes": [
44
{
55
"parameters": {
66
"rule": {
7-
"interval": [{"field": "hours", "hoursInterval": 1}]
7+
"interval": [{"field": "minutes", "minutesInterval": 1}]
88
}
99
},
1010
"id": "schedule-trigger",
11-
"name": "Every Hour",
11+
"name": "Every Minute",
1212
"type": "n8n-nodes-base.scheduleTrigger",
1313
"typeVersion": 1.3,
1414
"position": [0, 0]
@@ -60,7 +60,7 @@
6060
}
6161
],
6262
"connections": {
63-
"Every Hour": {"main": [[{"node": "Expire Links", "type": "main", "index": 0}]]},
63+
"Every Minute": {"main": [[{"node": "Expire Links", "type": "main", "index": 0}]]},
6464
"Expire Links": {"main": [[{"node": "Any Expired?", "type": "main", "index": 0}]]},
6565
"Any Expired?": {"main": [[{"node": "Format Message", "type": "main", "index": 0}], []]}
6666
},

0 commit comments

Comments
 (0)