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

Method getBySlackUserId

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

* Get a Slack user mapping by Slack user ID

(slackUserId: string)

Source from the content-addressed store, hash-verified

77 * Get a Slack user mapping by Slack user ID
78 */
79 async getBySlackUserId(slackUserId: string): Promise<SlackUserMapping | null> {
80 const result = await query<SlackUserMapping>(
81 'SELECT * FROM slack_user_mappings WHERE slack_user_id = $1',
82 [slackUserId]
83 );
84 return result.rows[0] || null;
85 }
86
87 /**
88 * Get a Slack user mapping by WorkOS user ID

Callers 15

setupAuthRoutesMethod · 0.95
handleMarketingOptInFunction · 0.95
createAdminToolHandlersFunction · 0.95
getActivitySummaryMethod · 0.95
setupDomainRoutesFunction · 0.80
createAdminSlackRouterFunction · 0.80
lookupSlackUserNameFunction · 0.80
getMemberContextFunction · 0.80
createMemberToolHandlersFunction · 0.80
isCommitteeLeaderFunction · 0.80
getCurrentUserWorkosIdFunction · 0.80
isSlackUserAAOAdminFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected