Team-Mails: Links ins Ticketsystem statt Admin-Bereich

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-02 03:52:54 +00:00
1 parent 7c00633db0
commit 95e2807dc7
20 files changed
+132 -28

No files matched your search

+6 -1
View File
@@ -62,7 +62,12 @@ export async function sendChatNotification(customer, text) {
const mail = render({
template: 'T01',
values: { kunde_name: customer.name || customer.email || 'Kunde', nachricht: text },
values: {
kunde_name: customer.name || customer.email || 'Kunde',
nachricht: text,
// Knopf "Im Ticketsystem antworten": Messenger mit dem Gespraech dieses Kunden
team_link: `${config.womsBaseUrl}/customers/chat?kunde=${encodeURIComponent(customer.$id)}`,
},
})
await mailer.sendMail({
from: `"${TEAM_SENDER}" <${config.smtp.from}>`,