MCPcopy Create free account
hub / github.com/dailydotdev/apps / getProfile

Function getProfile

packages/shared/src/lib/user.ts:341–344  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

339};
340
341export async function getProfile(id: string): Promise<PublicProfile> {
342 const result = await getProfileRequest(id);
343 return (result.status === 'found' ? result.user : undefined) as PublicProfile;
344}
345
346export async function getProfileForStaticProps(
347 id: string,

Callers 4

useUserInfoFormFunction · 0.90
useProfileFunction · 0.90
getStaticPropsFunction · 0.90
userProfileQueryOptionsFunction · 0.85

Calls 1

getProfileRequestFunction · 0.85

Tested by

no test coverage detected