MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / updateProfileByOrgId

Method updateProfileByOrgId

server/src/db/member-db.ts:210–219  ·  view source on GitHub ↗

* Update profile by organization ID (for authenticated users updating their own profile)

(
    workos_organization_id: string,
    updates: UpdateMemberProfileInput
  )

Source from the content-addressed store, hash-verified

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

Callers 4

createRegistryApiRouterFunction · 0.95
member-db.test.tsFile · 0.80

Calls 2

getProfileByOrgIdMethod · 0.95
updateProfileMethod · 0.95

Tested by

no test coverage detected