* Get profile by organization ID
(workos_organization_id: string)
| 130 | * Get profile by organization ID |
| 131 | */ |
| 132 | async getProfileByOrgId(workos_organization_id: string): Promise<MemberProfile | null> { |
| 133 | const result = await query<MemberProfile>( |
| 134 | 'SELECT * FROM member_profiles WHERE workos_organization_id = $1', |
| 135 | [workos_organization_id] |
| 136 | ); |
| 137 | |
| 138 | return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Update member profile |
no test coverage detected