* Find Slack user mapping by email
(email: string)
| 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 |
no outgoing calls
no test coverage detected