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

Function acceptInvites

apps/web/server/routers/auth.ts:26–32  ·  view source on GitHub ↗
(userEmail: string)

Source from the content-addressed store, hash-verified

24import ChannelsService from 'services/channels';
25
26async function acceptInvites(userEmail: string) {
27 // accept invites
28 const invites = await findInvitesByEmail(userEmail);
29 for (const invite of invites) {
30 await acceptInvite(invite.id, userEmail).catch(console.error);
31 }
32}
33
34const prefix = '/api/auth';
35

Callers 1

auth.tsFile · 0.85

Calls 2

findInvitesByEmailFunction · 0.90
acceptInviteFunction · 0.90

Tested by

no test coverage detected