(id: string)
| 65 | } |
| 66 | |
| 67 | export 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 | |
| 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) |
no test coverage detected