* Get a Slack user mapping by Slack user ID
(slackUserId: string)
| 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 |
no outgoing calls
no test coverage detected