* Update profile by organization ID (for authenticated users updating their own profile)
(
workos_organization_id: string,
updates: UpdateMemberProfileInput
)
| 208 | * Update profile by organization ID (for authenticated users updating their own profile) |
| 209 | */ |
| 210 | async updateProfileByOrgId( |
| 211 | workos_organization_id: string, |
| 212 | updates: UpdateMemberProfileInput |
| 213 | ): Promise<MemberProfile | null> { |
| 214 | const profile = await this.getProfileByOrgId(workos_organization_id); |
| 215 | if (!profile) { |
| 216 | return null; |
| 217 | } |
| 218 | return this.updateProfile(profile.id, updates); |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Delete member profile |
no test coverage detected