* Get profile by primary brand domain
(domain: string)
| 118 | * Get profile by primary brand domain |
| 119 | */ |
| 120 | async getProfileByDomain(domain: string): Promise<MemberProfile | null> { |
| 121 | const result = await query<MemberProfile>( |
| 122 | 'SELECT * FROM member_profiles WHERE primary_brand_domain = $1', |
| 123 | [domain] |
| 124 | ); |
| 125 | |
| 126 | return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null; |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Get profile by organization ID |
no test coverage detected