Skip to content

Commit

Permalink
Chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
y-solb committed Jul 5, 2024
1 parent 332a912 commit 3a0bca7
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/fetch/fetchPortfolio.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import API_ENDPOINTS from '@/constants/apiEndpoints'
// import API_ENDPOINTS from '@/constants/apiEndpoints'

type PortfolioData = {
thumbnail: string
displayName: string
shortBio: string
}

export const fetchPortfolio = async (
username: string,
): Promise<PortfolioData | null> => {
const res = await fetch(
`${process.env.NEXT_PUBLIC_API_HOST}${API_ENDPOINTS.PORTFOLIO.METADATA(username)}`,
{ cache: 'no-store' },
)

if (res.status !== 200) {
return null
}
return res.json()
export const fetchPortfolio = async () // username: string,
: Promise<PortfolioData | null> => {
return null
// const res = await fetch(
// `${process.env.NEXT_PUBLIC_API_HOST}${API_ENDPOINTS.PORTFOLIO.METADATA(username)}`,
// { cache: 'no-store' },
// )
// if (res.status !== 200) {
// return null
// }
// return res.json()
}

0 comments on commit 3a0bca7

Please sign in to comment.