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

Function getProfileForStaticProps

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

Source from the content-addressed store, hash-verified

344}
345
346export async function getProfileForStaticProps(
347 id: string,
348): Promise<Exclude<ProfileRequestResult, { status: 'failed' }>> {
349 const result = await getProfileRequest(id);
350 if (result.status === 'failed') {
351 throw result.error;
352 }
353
354 return result;
355}
356
357export async function getProfileV2Extra(
358 id: string,

Callers 1

getStaticPropsFunction · 0.90

Calls 1

getProfileRequestFunction · 0.85

Tested by

no test coverage detected