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

Method getProfileById

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

* Get profile by ID

(id: string)

Source from the content-addressed store, hash-verified

94 * Get profile by ID
95 */
96 async getProfileById(id: string): Promise<MemberProfile | null> {
97 const result = await query<MemberProfile>(
98 'SELECT * FROM member_profiles WHERE id = $1',
99 [id]
100 );
101
102 return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null;
103 }
104
105 /**
106 * Get profile by slug

Callers 4

createAdminToolHandlersFunction · 0.95
updateProfileMethod · 0.95
setupStatsRoutesFunction · 0.80
member-db.test.tsFile · 0.80

Calls 1

deserializeProfileMethod · 0.95

Tested by

no test coverage detected