Skip to content

Commit

Permalink
Fix: undefined 타입에서 문자열로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Aug 1, 2023
1 parent e6cebf5 commit 62baca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/notice/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62baca3

Please sign in to comment.