( id: string, )
| 344 | } |
| 345 | |
| 346 | export 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 | |
| 357 | export async function getProfileV2Extra( |
| 358 | id: string, |
no test coverage detected