From 188ca13c2c7d9613316f858a6e396ac69449787e Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Apr 2024 10:41:46 +0200 Subject: [PATCH] refactor(chore): replace logo from attachments by url --- src/send.ts | 9 +-------- templates/Welcome.tsx | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/send.ts b/src/send.ts index f4d3e8e..316215b 100644 --- a/src/send.ts +++ b/src/send.ts @@ -13,13 +13,6 @@ export async function send(mail: Mail) { subject: mail.subject, text, html, - attachments: [ - { - cid: 'cohabit_logo.svg', - path: 'https://cohabit.fr/images/logo.svg', - filename: 'cohabit_logo.svg', - }, - ...mail.options.attachments.map((path) => ({ path })), - ], + attachments: mail.options.attachments.map((path) => ({ path })), }) } diff --git a/templates/Welcome.tsx b/templates/Welcome.tsx index 9560b24..b58a3f3 100644 --- a/templates/Welcome.tsx +++ b/templates/Welcome.tsx @@ -31,7 +31,7 @@ function Welcome(
Bienvenue auFabLab Cohabit