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

Method getByWorkosUserId

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

* Get a Slack user mapping by WorkOS user ID

(workosUserId: string)

Source from the content-addressed store, hash-verified

88 * Get a Slack user mapping by WorkOS user ID
89 */
90 async getByWorkosUserId(workosUserId: string): Promise<SlackUserMapping | null> {
91 const result = await query<SlackUserMapping>(
92 'SELECT * FROM slack_user_mappings WHERE workos_user_id = $1',
93 [workosUserId]
94 );
95 return result.rows[0] || null;
96 }
97
98 /**
99 * Find Slack user mapping by email

Callers 13

setupAuthRoutesMethod · 0.95
createCommitteeRoutersFunction · 0.95
createAdminToolHandlersFunction · 0.95
notifyUserFunction · 0.80
createAdminSlackRouterFunction · 0.80
getWebMemberContextFunction · 0.80
resolveSlackUserIdFunction · 0.80
sendWgWelcomeMessageFunction · 0.80
tryAutoMapByEmailFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected