From 22327b2a3baf149dfcf4f69130394c06f31decab Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Wed, 9 Aug 2023 16:19:52 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=95=99=EA=B5=90=20=EA=B3=B5=EC=A7=80?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EC=B2=98=EB=A6=AC=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/notice/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/notice/controller.ts b/src/apis/notice/controller.ts index 009145f4..851755c6 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);