* Get profile by ID
(id: string)
| 94 | * Get profile by ID |
| 95 | */ |
| 96 | async getProfileById(id: string): Promise<MemberProfile | null> { |
| 97 | const result = await query<MemberProfile>( |
| 98 | 'SELECT * FROM member_profiles WHERE id = $1', |
| 99 | [id] |
| 100 | ); |
| 101 | |
| 102 | return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Get profile by slug |
no test coverage detected