fix(auth): fix inviter name access in sendInvitationEmail

Access inviter.user.name instead of inviter.name to match Better Auth's
organization plugin type structure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-26 14:54:39 +01:00
parent fafa550a60
commit f173a2287e

View file

@ -139,7 +139,7 @@ export function createBetterAuth(databaseUrl: string) {
await sendInvitationEmail(
email,
organization.name,
inviter?.name || 'Ein Teammitglied',
inviter?.user?.name || 'Ein Teammitglied',
inviteUrl
);
},