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

Method getProfileByOrgId

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

* Get profile by organization ID

(workos_organization_id: string)

Source from the content-addressed store, hash-verified

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

Callers 15

setupAuthRoutesMethod · 0.95
getAccountHandlerFunction · 0.95
updateProfileByOrgIdMethod · 0.95
isPaidMemberFunction · 0.80
createReferralsRouterFunction · 0.80
getMemberContextFunction · 0.80
createMemberToolHandlersFunction · 0.80

Calls 1

deserializeProfileMethod · 0.95

Tested by

no test coverage detected