|
79 | 79 | "resolve": null, |
80 | 80 | "reject": null, |
81 | 81 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
82 | | - "_syncId": "615a54cd-a72e-41ad-9403-9577c80280d6" |
| 82 | + "_syncId": "84c38ea6-5d15-429f-8c24-9485d54ba7be" |
83 | 83 | }, |
84 | 84 | { |
85 | 85 | "name": "Email Send Operation Failed Dutch", |
|
93 | 93 | "resolve": null, |
94 | 94 | "reject": null, |
95 | 95 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
96 | | - "_syncId": "84c38ea6-5d15-429f-8c24-9485d54ba7be" |
| 96 | + "_syncId": "615a54cd-a72e-41ad-9403-9577c80280d6" |
97 | 97 | }, |
98 | 98 | { |
99 | 99 | "name": "failed", |
|
107 | 107 | "resolve": null, |
108 | 108 | "reject": null, |
109 | 109 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
110 | | - "_syncId": "8d8d787a-dbc4-44f9-9ab4-28e3f3d5f31c" |
| 110 | + "_syncId": "eb6f8253-647f-4fb1-9010-e93594ba065e" |
111 | 111 | }, |
112 | 112 | { |
113 | 113 | "name": "failed", |
|
121 | 121 | "resolve": null, |
122 | 122 | "reject": null, |
123 | 123 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
124 | | - "_syncId": "eb6f8253-647f-4fb1-9010-e93594ba065e" |
| 124 | + "_syncId": "8d8d787a-dbc4-44f9-9ab4-28e3f3d5f31c" |
125 | 125 | }, |
126 | 126 | { |
127 | 127 | "name": "Filter Emails", |
|
132 | 132 | "options": { |
133 | 133 | "code": "module.exports = async function(data) {\n\n const submissions = data.get_all_participants;\n \n // Filter submissions to only include those where email_opt_in is true\n const filteredSubmissions = submissions.filter(sub => sub.email_opt_in === true);\n\n // Create an array with email, project_id and an email_opt_out token for each submission\n const result = filteredSubmissions.map(sub => ({\n project_name: data.project_data[0].name || '',\n\t\tdefault_conversation_title: data.project_data[0].default_conversation_title || '',\n\t\tconversation_name: sub.conversation_id.participant_name || '',\n email: sub.email,\n project_id: sub.project_id || '',\n token: sub.email_opt_out_token,\n language: data.check_report_language[0].language || 'empty',\n ADMIN_BASE_URL: \"{{ $env.ADMIN_BASE_URL }}\" || \"http://localhost:5173\",\n PARTICIPANT_BASE_URL: \"{{ $env.PARTICIPANT_BASE_URL }}\" || \"http://localhost:5174\", \n }));\n \n return result;\n};" |
134 | 134 | }, |
135 | | - "resolve": "b8144cee-59f6-40d9-a849-dd0c639e4e31", |
| 135 | + "resolve": "e101f00d-2fb8-4f40-9e0e-4d24da5bb1e9", |
136 | 136 | "reject": null, |
137 | 137 | "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", |
138 | | - "_syncId": "ca1ffbc5-cfce-4fb4-8f15-c128ea407d41" |
| 138 | + "_syncId": "efb3982e-5703-4c07-8982-a6e1b5218e4a" |
139 | 139 | }, |
140 | 140 | { |
141 | 141 | "name": "Filter Emails", |
|
146 | 146 | "options": { |
147 | 147 | "code": "module.exports = async function(data) {\n\n const submissions = data.get_all_participants;\n \n // Filter submissions to only include those where email_opt_in is true\n const filteredSubmissions = submissions.filter(sub => sub.email_opt_in === true);\n\n // Create an array with email, project_id and an email_opt_out token for each submission\n const result = filteredSubmissions.map(sub => ({\n project_name: data.project_data[0].name || '',\n\t\tdefault_conversation_title: data.project_data[0].default_conversation_title || '',\n\t\tconversation_name: sub.conversation_id.participant_name || '',\n email: sub.email,\n project_id: sub.project_id || '',\n token: sub.email_opt_out_token,\n language: data.check_report_language[0].language || 'empty',\n ADMIN_BASE_URL: \"{{ $env.ADMIN_BASE_URL }}\" || \"http://localhost:5173\",\n PARTICIPANT_BASE_URL: \"{{ $env.PARTICIPANT_BASE_URL }}\" || \"http://localhost:5174\", \n }));\n \n return result;\n};" |
148 | 148 | }, |
149 | | - "resolve": "e101f00d-2fb8-4f40-9e0e-4d24da5bb1e9", |
| 149 | + "resolve": "b8144cee-59f6-40d9-a849-dd0c639e4e31", |
150 | 150 | "reject": null, |
151 | 151 | "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", |
152 | | - "_syncId": "efb3982e-5703-4c07-8982-a6e1b5218e4a" |
| 152 | + "_syncId": "ca1ffbc5-cfce-4fb4-8f15-c128ea407d41" |
153 | 153 | }, |
154 | 154 | { |
155 | 155 | "name": "log environment vars", |
|
213 | 213 | "resolve": null, |
214 | 214 | "reject": null, |
215 | 215 | "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", |
216 | | - "_syncId": "84852456-3f3a-4906-be94-8b750159883b" |
| 216 | + "_syncId": "e8274ad4-5844-42cd-8a6b-d40d08cf83d3" |
217 | 217 | }, |
218 | 218 | { |
219 | 219 | "name": "Report Not Published", |
|
227 | 227 | "resolve": null, |
228 | 228 | "reject": null, |
229 | 229 | "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", |
230 | | - "_syncId": "e8274ad4-5844-42cd-8a6b-d40d08cf83d3" |
| 230 | + "_syncId": "84852456-3f3a-4906-be94-8b750159883b" |
231 | 231 | }, |
232 | 232 | { |
233 | 233 | "name": "Send Email Dutch", |
|
256 | 256 | ] |
257 | 257 | }, |
258 | 258 | "resolve": null, |
259 | | - "reject": "84c38ea6-5d15-429f-8c24-9485d54ba7be", |
| 259 | + "reject": "615a54cd-a72e-41ad-9403-9577c80280d6", |
260 | 260 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
261 | | - "_syncId": "34fb6ee5-2813-484a-a1cc-f97de097509b" |
| 261 | + "_syncId": "ea78ec02-364d-4f18-80f8-ea5ac4c787ed" |
262 | 262 | }, |
263 | 263 | { |
264 | 264 | "name": "Send Email Dutch", |
|
287 | 287 | ] |
288 | 288 | }, |
289 | 289 | "resolve": null, |
290 | | - "reject": "615a54cd-a72e-41ad-9403-9577c80280d6", |
| 290 | + "reject": "84c38ea6-5d15-429f-8c24-9485d54ba7be", |
291 | 291 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
292 | | - "_syncId": "ea78ec02-364d-4f18-80f8-ea5ac4c787ed" |
| 292 | + "_syncId": "34fb6ee5-2813-484a-a1cc-f97de097509b" |
293 | 293 | }, |
294 | 294 | { |
295 | 295 | "name": "Send Email English", |
|
318 | 318 | ] |
319 | 319 | }, |
320 | 320 | "resolve": null, |
321 | | - "reject": "2b24450b-6a2e-4452-aba1-9814d17fef42", |
| 321 | + "reject": "920bd181-b2a2-4f0d-94dc-3b1a08c3f4ef", |
322 | 322 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
323 | | - "_syncId": "9390ed2f-7dc6-4a6a-83da-2d87d478261d" |
| 323 | + "_syncId": "3dbf2ea1-17f8-4bde-aa89-43278fe9a00f" |
324 | 324 | }, |
325 | 325 | { |
326 | 326 | "name": "Send Email English", |
|
349 | 349 | ] |
350 | 350 | }, |
351 | 351 | "resolve": null, |
352 | | - "reject": "920bd181-b2a2-4f0d-94dc-3b1a08c3f4ef", |
| 352 | + "reject": "2b24450b-6a2e-4452-aba1-9814d17fef42", |
353 | 353 | "flow": "17703446-fef0-49e9-bdc4-385db1311137", |
354 | | - "_syncId": "3dbf2ea1-17f8-4bde-aa89-43278fe9a00f" |
| 354 | + "_syncId": "9390ed2f-7dc6-4a6a-83da-2d87d478261d" |
355 | 355 | }, |
356 | 356 | { |
357 | 357 | "name": "Trigger Email Flow", |
|
0 commit comments