Skip to content

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Sep 15, 2023
1 parent 2ceeed2 commit 24f7d62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/pages/api/v1/clerk/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ export default async function handler(
});

if (loopsResponse.status < 200 || loopsResponse.status >= 300) {
return res.status(400).json({ error: "Loops API Error ", jsonResponse: await loopsResponse.json() });
return res
.status(500)
.json({ error: "Loops API Error ", jsonResponse: await loopsResponse.json() });
}
return res.status(200).json({});
} catch (err) {
return res.status(400).json({
error: (err as Error).message
error: (err as Error).message,
});
}
}
Expand Down

0 comments on commit 24f7d62

Please sign in to comment.