(userId: string)
| 207 | } |
| 208 | |
| 209 | async getProfile(userId: string): Promise<CommunityProfile | null> { |
| 210 | const result = await query<CommunityProfile>( |
| 211 | `SELECT workos_user_id, slug, headline, bio, avatar_url, expertise, interests, |
| 212 | linkedin_url, twitter_url, github_username, is_public, open_to_coffee_chat, open_to_intros, |
| 213 | city |
| 214 | FROM users WHERE workos_user_id = $1`, |
| 215 | [userId] |
| 216 | ); |
| 217 | return result.rows[0] || null; |
| 218 | } |
| 219 | |
| 220 | getProfileCompleteness(user: { |
| 221 | headline?: string | null; |
no outgoing calls
no test coverage detected