mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
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:
parent
fafa550a60
commit
f173a2287e
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ export function createBetterAuth(databaseUrl: string) {
|
|||
await sendInvitationEmail(
|
||||
email,
|
||||
organization.name,
|
||||
inviter?.name || 'Ein Teammitglied',
|
||||
inviter?.user?.name || 'Ein Teammitglied',
|
||||
inviteUrl
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue