diff --git a/.manus/db/db-query-1764695678138.json b/.manus/db/db-query-1764695678138.json new file mode 100644 index 0000000..f38e44f --- /dev/null +++ b/.manus/db/db-query-1764695678138.json @@ -0,0 +1,16 @@ +{ + "query": "SELECT type, name, headerTitle, bodyContent FROM emailTemplates WHERE type = 'inscription' LIMIT 1", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT type, name, headerTitle, bodyContent FROM emailTemplates WHERE type = 'inscription' LIMIT 1", + "rows": [ + { + "type": "inscription", + "name": "", + "headerTitle": "Formation Manager Itinova", + "bodyContent": "

Cher(e) {{prenomApprenant}} {{nomApprenant}},

Nous avons le plaisir de vous informer que votre inscription à une formation Itinova : {{nomFormation}} le {{dateDebut}} a été confirmée avec succès.

Nous sommes ravis de vous accueillir et nous espérons que cette formation répondra à vos attentes.

" + } + ], + "messages": [], + "stdout": "type\tname\theaderTitle\tbodyContent\ninscription\t\tFormation Manager Itinova\t

Cher(e) {{prenomApprenant}} {{nomApprenant}},

Nous avons le plaisir de vous informer que votre inscription à une formation Itinova : {{nomFormation}} le {{dateDebut}} a été confirmée avec succès.

Nous sommes ravis de vous accueillir et nous espérons que cette formation répondra à vos attentes.

\n", + "stderr": "", + "execution_time_ms": 99 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764695817072.json b/.manus/db/db-query-1764695817072.json new file mode 100644 index 0000000..4347570 --- /dev/null +++ b/.manus/db/db-query-1764695817072.json @@ -0,0 +1,9 @@ +{ + "query": "UPDATE emailTemplates \nSET bodyContent = '

Cher(e) {{prenomApprenant}} {{nomApprenant}},

Votre inscription à la formation {{nomFormation}} (séquence {{nomSequence}}) a bien été enregistrée.

Lieu : {{lieu}}

Vous recevrez prochainement les invitations Outlook pour bloquer votre agenda.

À bientôt !

'\nWHERE type = 'inscription'", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute UPDATE emailTemplates \nSET bodyContent = '

Cher(e) {{prenomApprenant}} {{nomApprenant}},

Votre inscription à la formation {{nomFormation}} (séquence {{nomSequence}}) a bien été enregistrée.

Lieu : {{lieu}}

Vous recevrez prochainement les invitations Outlook pour bloquer votre agenda.

À bientôt !

'\nWHERE type = 'inscription'", + "rows": [], + "messages": [], + "stdout": "", + "stderr": "", + "execution_time_ms": 56 +} \ No newline at end of file diff --git a/todo.md b/todo.md index 0fa11d2..7c996d5 100644 --- a/todo.md +++ b/todo.md @@ -946,3 +946,10 @@ - [x] Identifier pourquoi l'inscription de MONROE Marylin crée une inscription pour PIGNOL François - [x] Corriger le code pour associer le bon apprenant lors de l'inscription (création de createPublic) - [ ] Tester l'inscription avec différents apprenants pour vérifier la correction + +## Bug Email Confirmation - Variable {{prenomApprenant}} non remplacée + +- [x] Analyser la fonction sendInscriptionConfirmation dans email.ts +- [x] Identifier pourquoi {{prenomApprenant}} n'est pas remplacé (affiche "Cher(e) {{prenomApprenant}} monroe") +- [x] Corriger le remplacement des variables dans l'email de confirmation (mise à jour du bodyContent du template) +- [ ] Tester l'envoi d'un email de confirmation avec les bonnes variables