(token: string)
| 71 | } |
| 72 | |
| 73 | export async function getInvitationByToken(token: string): Promise<InvitationWithGrants | null> { |
| 74 | const [row] = await db.select().from(invitation).where(eq(invitation.token, token)).limit(1) |
| 75 | if (!row) return null |
| 76 | return hydrateInvitation(row) |
| 77 | } |
| 78 | |
| 79 | async function hydrateInvitation( |
| 80 | row: typeof invitation.$inferSelect |
nothing calls this directly
no test coverage detected