(organizationId: string)
| 72 | * Get all member user IDs for an organization |
| 73 | */ |
| 74 | export async function getOrgMemberIds(organizationId: string): Promise<string[]> { |
| 75 | const members = await db |
| 76 | .select({ userId: member.userId }) |
| 77 | .from(member) |
| 78 | .where(eq(member.organizationId, organizationId)) |
| 79 | |
| 80 | return members.map((m) => m.userId) |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Block all members of an organization for billing reasons |
no test coverage detected