MCPcopy Index your code
hub / github.com/simstudioai/sim / getInvitationById

Function getInvitationById

apps/sim/lib/invitations/core.ts:67–71  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

65}
66
67export async function getInvitationById(id: string): Promise<InvitationWithGrants | null> {
68 const [row] = await db.select().from(invitation).where(eq(invitation.id, id)).limit(1)
69 if (!row) return null
70 return hydrateInvitation(row)
71}
72
73export async function getInvitationByToken(token: string): Promise<InvitationWithGrants | null> {
74 const [row] = await db.select().from(invitation).where(eq(invitation.token, token)).limit(1)

Callers 4

route.tsFile · 0.90
route.tsFile · 0.90
acceptInvitationFunction · 0.85
rejectInvitationFunction · 0.85

Calls 2

hydrateInvitationFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected