Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
지역 설정 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5d-jh committed Nov 30, 2018
1 parent c3a4f82 commit e0f350f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion api/getMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ module.exports = (schoolType, schoolCode, menuDate) => {
err.status = 400;
throw err;
}
if (schoolRegion === "national") schoolRegion = nationalHigh[code];

const NOMENU_MSG = [];
let year = menuDate.year;
Expand Down
2 changes: 1 addition & 1 deletion api/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ router.get('/:schoolType/:schoolCode', (req, res, next) => {
const menuMonth = Number(req.query.month) || new Date().getMonth()+1;

responseCache.getCache(req.params.schoolType, req.params.schoolCode, menuYear, menuMonth, (schoolMenuCache, err) => {
if (err) throw err;
if (err) return next(err);

if (!schoolMenuCache.schoolMenu) {
return res.redirect(req.originalUrl);
Expand Down

0 comments on commit e0f350f

Please sign in to comment.