From 2c500a433722e92b799f58f0a586168ce43846ab Mon Sep 17 00:00:00 2001 From: Alzer Del Zeyger <75466035+Dx-Alz-xD@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:01:48 +0530 Subject: [PATCH] fix(upcoming): answer an empty list instead of 404 when nothing is upcoming between exams the endpoint answered 404, which filled the browser console with errors. the client already shows a message for an empty list --- src/app/api/upcoming-papers/route.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/api/upcoming-papers/route.ts b/src/app/api/upcoming-papers/route.ts index 96e8140..95dba14 100644 --- a/src/app/api/upcoming-papers/route.ts +++ b/src/app/api/upcoming-papers/route.ts @@ -7,10 +7,6 @@ export async function GET() { try { const selectedSubjects = await getUpcomingSubjects(); - if (selectedSubjects.length === 0) { - return failure("No selected papers found.", 404); - } - return success(selectedSubjects); } catch (error) { console.error("Error fetching papers:", error);