fix(andreknie.de): improve mobile dock and resource requests

This commit is contained in:
2026-07-28 20:54:08 +02:00
parent 0459daa074
commit 8236cce85c
12 changed files with 219 additions and 61 deletions
@@ -59,15 +59,18 @@ export async function sendStakeholderNotification(type, data) {
const subjects = {
contact: `Neue Kontaktanfrage von ${data.name}`,
'talk-request': `Neue Vortragsanfrage von ${data.name}`,
'resource-download': `Ressourcenanfrage von ${data.name}`,
}
const body = Object.entries(data)
.map(([key, val]) => `${key}: ${val}`)
.join('\n')
const body = [
'Bitte die angefragten Inhalte prüfen und bei positiver Prüfung ein aktuelles Profil von André verschicken.',
'',
...Object.entries(data).map(([key, val]) => `${key}: ${val}`),
].join('\n')
await t.sendMail({
from: SMTP_USER,
to: STAKEHOLDER_EMAIL,
to: type === 'resource-download' ? 'kontakt@d-hive.de' : STAKEHOLDER_EMAIL,
subject: subjects[type] || `Neue Anfrage (${type})`,
text: body,
})