MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / sendInvitationByEmail

Function sendInvitationByEmail

apps/web/services/invites.ts:79–96  ·  view source on GitHub ↗
({
  email,
  host,
  communityName,
  inviterName,
}: {
  communityName: string;
  email: string;
  host: string;
  inviterName: string;
})

Source from the content-addressed store, hash-verified

77}
78
79async function sendInvitationByEmail({
80 email,
81 host,
82 communityName,
83 inviterName,
84}: {
85 communityName: string;
86 email: string;
87 host: string;
88 inviterName: string;
89}) {
90 await InviteToJoinMailer.send({
91 communityName,
92 host,
93 inviterName,
94 to: email,
95 });
96}
97
98export async function findUsersAndInvitesByAccount(id: string): Promise<{
99 users: (users & {

Callers 1

createInvitationFunction · 0.85

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected