Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

186 future students landing page #187

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
remove "showcase inactive" log
  • Loading branch information
ptbarnum4 committed Nov 19, 2024
commit 609dafe040720890ad3455cbfb1160f02e1a61f0
2 changes: 0 additions & 2 deletions pages/api/showcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ export default async function showcaseHandler(req: Req, res: Res) {
const disableTime = dayjs(startDateTime).add(doorsOffset ?? 30, 'minutes');

if (disableTime.isBefore(dayjs())) {
console.info('Showcase inactive');
res.status(NO_SHOWCASE_STATUS).end();
return;
}

res.status(200).json(showcase);
} catch (err) {
if (isAxiosError(err) && err.response?.status === 404) {
console.info('Showcase inactive');
res.status(NO_SHOWCASE_STATUS).end();
return;
}
Expand Down
Loading