fix: Removes send an invite email option & always send email (#12229)
This commit is contained in:
1 parent
d1d50b0d91
commit
809abd2f4f
11 files changed
+95
-126
No files matched your search
@@ -98,7 +98,7 @@ export const inviteMemberHandler = async ({ ctx, input }: InviteMemberOptions) =
|
||||
sendTo = invitee.email;
|
||||
}
|
||||
// inform user of membership by email
|
||||
if (input.sendEmailInvitation && ctx?.user?.name && team?.name) {
|
||||
if (ctx?.user?.name && team?.name) {
|
||||
const inviteTeamOptions = {
|
||||
joinLink: `${WEBAPP_URL}/auth/login?callbackUrl=/settings/teams`,
|
||||
isCalcomMember: true,
|
||||
|
||||
@@ -12,7 +12,6 @@ export const ZInviteMemberInputSchema = z.object({
|
||||
}),
|
||||
role: z.nativeEnum(MembershipRole),
|
||||
language: z.string(),
|
||||
sendEmailInvitation: z.boolean(),
|
||||
isOrg: z.boolean().default(false),
|
||||
});
|
||||
|
||||
|
||||
@@ -243,7 +243,6 @@ export async function sendVerificationEmail({
|
||||
role: "ADMIN" | "MEMBER" | "OWNER";
|
||||
usernameOrEmail: string | string[];
|
||||
language: string;
|
||||
sendEmailInvitation: boolean;
|
||||
isOrg: boolean;
|
||||
};
|
||||
connectionInfo: ReturnType<typeof getOrgConnectionInfo>;
|
||||
|
||||
Reference in new issue
Block a user