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

Method findByEmail

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

* Find Slack user mapping by email

(email: string)

Source from the content-addressed store, hash-verified

99 * Find Slack user mapping by email
100 */
101 async findByEmail(email: string): Promise<SlackUserMapping | null> {
102 const result = await query<SlackUserMapping>(
103 'SELECT * FROM slack_user_mappings WHERE LOWER(slack_email) = LOWER($1)',
104 [email]
105 );
106 return result.rows[0] || null;
107 }
108
109 /**
110 * Map a Slack user to a WorkOS user

Callers 4

registerAllJobsFunction · 0.95
createEventsRouterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected