Skip to content

Commit

Permalink
Update [username].tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
indexxing committed Jan 19, 2024
1 parent 89c017d commit 880d761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/embed/[username].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ export default async function handler(
'commitgraph',
])

if (panels.some((panel) => panelsToCheck.has(panel))) {
if (panels.some((panel:any) => panelsToCheck.has(panel))) {
const headers = { authorization: `token ${process.env.GITHUB_TOKEN}` }
resp = await graphql(query, { headers }).catch((err) => {
resp = await graphql(query, { headers }).catch((err:any) => {
res.status(404).json({ error: { message: 'FETCH ERROR ' + err.message } })
})
}
Expand Down

0 comments on commit 880d761

Please sign in to comment.