diff --git a/src/apis/notice/controller.ts b/src/apis/notice/controller.ts index 851755c6..009145f4 100644 --- a/src/apis/notice/controller.ts +++ b/src/apis/notice/controller.ts @@ -6,7 +6,7 @@ router.get('/', async (req: Request, res: Response) => { try { const major = req.query.major as string; let notices; - if (major === undefined) { + if (major === 'undefined') { notices = await getSchoolNotices(); } else { notices = await getNotices(major);