* Get profile by slug
(slug: string)
| 106 | * Get profile by slug |
| 107 | */ |
| 108 | async getProfileBySlug(slug: string): Promise<MemberProfile | null> { |
| 109 | const result = await query<MemberProfile>( |
| 110 | 'SELECT * FROM member_profiles WHERE slug = $1', |
| 111 | [slug] |
| 112 | ); |
| 113 | |
| 114 | return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Get profile by primary brand domain |
no test coverage detected