From 3e5bc3c2a3046fb853351f53bbc0c7e8e2ab104a Mon Sep 17 00:00:00 2001 From: Shamzic Date: Wed, 15 Nov 2023 11:49:08 +0100 Subject: [PATCH 1/2] refactor: chemin de l'outl d'envoi d'email --- roles/bootstrap/tasks/setup_cron.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bootstrap/tasks/setup_cron.yaml b/roles/bootstrap/tasks/setup_cron.yaml index a9804ed..25c9c2f 100644 --- a/roles/bootstrap/tasks/setup_cron.yaml +++ b/roles/bootstrap/tasks/setup_cron.yaml @@ -18,7 +18,7 @@ job: >- (cd {{ repository_folder }} && {{ envvar_prefix }} /usr/bin/node - ./dist-server/backend/lib/email.js send initial-survey + ./dist-server/backend/lib/messaging/email/email-sending-tool.js send initial-survey --multiple 1000 >> /var/log/{{ server_user_name }}/{{ item.name }}_emails.log 2>&1) - name: Add a cron job to send email become_user: "{{ server_user_name }}" From 82ce949932cbb7c64e436c548d2d29d40e655acb Mon Sep 17 00:00:00 2001 From: Simon Hamery Date: Thu, 16 Nov 2023 14:59:43 +0100 Subject: [PATCH 2/2] Update setup_cron.yaml --- roles/bootstrap/tasks/setup_cron.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bootstrap/tasks/setup_cron.yaml b/roles/bootstrap/tasks/setup_cron.yaml index 25c9c2f..47d7499 100644 --- a/roles/bootstrap/tasks/setup_cron.yaml +++ b/roles/bootstrap/tasks/setup_cron.yaml @@ -18,7 +18,7 @@ job: >- (cd {{ repository_folder }} && {{ envvar_prefix }} /usr/bin/node - ./dist-server/backend/lib/messaging/email/email-sending-tool.js send initial-survey + ./dist-server/tools/email-sending-tool.js send initial-survey --multiple 1000 >> /var/log/{{ server_user_name }}/{{ item.name }}_emails.log 2>&1) - name: Add a cron job to send email become_user: "{{ server_user_name }}"