forked from rodtanci/ChatWoot-Disparador-de-Campanhas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset-limite-campanhas.json
71 lines (71 loc) · 1.49 KB
/
reset-limite-campanhas.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "Reset limite campanha",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 0 * * *"
}
]
}
},
"id": "8166d759-0e68-49b0-9183-f215cf956990",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
300,
460
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "UPDATE accounts\nSET limite_disparo = 100",
"options": {}
},
"id": "b9b20a59-d5ad-4983-8f97-80174ad3d0c9",
"name": "Adiciona limite",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
580,
460
],
"credentials": {
"postgres": {
"id": "CbrIGpLnj1oilB4h",
"name": "Chatwoot"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Adiciona limite",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "875ac33b-0a52-4ce9-9d08-e9b9504930a7",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "33738330930e3881dd5571eca013f36ddf8aab20e4ea5c1f2ebaf4a2b4668ac6"
},
"id": "2YWttfWP2o5hr4wa",
"tags": []
}