feat(chore): attach cohabit logo to mails

This commit is contained in:
Julien Oculi 2024-04-11 16:51:05 +02:00
parent 44a9090a39
commit 40d57ce880

View file

@ -13,6 +13,13 @@ export async function send(mail: Mail) {
subject: mail.subject,
text,
html,
attachments: mail.options.attachments.map((path) => ({ path })),
attachments: [
{
cid: 'cohabit_logo.svg',
path: 'https://cohabit.fr/images/logo.svg',
filename: 'cohabit_logo.svg',
},
...mail.options.attachments.map((path) => ({ path })),
],
})
}