Skip to content

Commit

Permalink
오류수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yumjuice committed Jul 19, 2020
1 parent cc877c3 commit 8133782
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/restaurants.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ router.get('/', function(req,res,next){
'isOpen':element.isOpen,
'foodImg':element.foodImg,
'detailDescription':element.detailDescription,
'likeNum' : likeNum
'likeNum' : element.likeNum

}
restaurants.push(restaurant)
Expand Down Expand Up @@ -88,10 +88,10 @@ router.get('/:id', function(req,res,next){
'img':result[0].img,
'description':result[0].description,
'category':result[0].categoryKey,
'isOpen':element.isOpen,
'foodImg':element.foodImg,
'detailDescription':element.detailDescription,
'likeNum' : likeNum,
'isOpen':result[0].isOpen,
'foodImg':result[0].foodImg,
'detailDescription':result[0].detailDescription,
'likeNum' : result[0].likeNum,

'items':items
}
Expand Down

0 comments on commit 8133782

Please sign in to comment.