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

Method getProfileByDomain

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

* Get profile by primary brand domain

(domain: string)

Source from the content-addressed store, hash-verified

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

Callers 1

createRegistryApiRouterFunction · 0.95

Calls 1

deserializeProfileMethod · 0.95

Tested by

no test coverage detected