MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getMappedWorkosUserIds

Method getMappedWorkosUserIds

server/src/db/slack-db.ts:727–732  ·  view source on GitHub ↗

* Get all WorkOS user IDs that are currently mapped to Slack users * Used to efficiently check for existing mappings without N+1 queries

()

Source from the content-addressed store, hash-verified

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.

Callers 3

createAdminSlackRouterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected