Skip to content

Commit

Permalink
fix: TECH send 400 status code instead of 500 on exchange calendar ad…
Browse files Browse the repository at this point in the history
…ding (#59)
  • Loading branch information
dmkav committed Sep 18, 2023
1 parent 9901c51 commit 3f474e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-store/exchangecalendar/api/_postAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function getHandler(req: NextApiRequest, res: NextApiResponse) {
return res.status(400).json({ message: "Invalid calendar link" });
}

return res.status(500).json({ message: reason.message });
return res.status(400).json({ message: reason.message });
}
return res.status(500).json({ message: "Could not add this exchange account" });
}
Expand Down

0 comments on commit 3f474e7

Please sign in to comment.