* Get all WorkOS user IDs that are currently mapped to Slack users * Used to efficiently check for existing mappings without N+1 queries
()
| 725 | * Used to efficiently check for existing mappings without N+1 queries |
| 726 | */ |
| 727 | async getMappedWorkosUserIds(): Promise<Set<string>> { |
| 728 | const result = await query<{ workos_user_id: string }>( |
| 729 | `SELECT workos_user_id FROM slack_user_mappings WHERE workos_user_id IS NOT NULL` |
| 730 | ); |
| 731 | return new Set(result.rows.map(row => row.workos_user_id)); |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * Link unmapped Slack users with a specific email domain to an organization. |
no outgoing calls
no test coverage detected